| 61 | |
| 62 | @dataclass |
| 63 | class 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 | |
| 76 | def validate_skill(skill_dir: Path, *, strict: bool = False) -> ValidationResult: |