MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / ValidationResult

Class ValidationResult

openkb/skill/validator.py:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62@dataclass
63class ValidationResult:
64 errors: list[str] = field(default_factory=list)
65 warnings: list[str] = field(default_factory=list)
66
67 @property
68 def passed(self) -> bool:
69 return not self.errors
70
71 @property
72 def passed_strict(self) -> bool:
73 return not self.errors and not self.warnings
74
75
76def validate_skill(skill_dir: Path, *, strict: bool = False) -> ValidationResult:

Callers 1

validate_skillFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected