MCPcopy Create free account
hub / github.com/apache/fory / ValidationIssue

Class ValidationIssue

compiler/fory_compiler/ir/validator.py:54–64  ·  view source on GitHub ↗

Validation issue with optional source location.

Source from the content-addressed store, hash-verified

52
53@dataclass
54class ValidationIssue:
55 """Validation issue with optional source location."""
56
57 message: str
58 location: Optional[SourceLocation]
59 severity: str
60
61 def __str__(self) -> str:
62 if not self.location:
63 return self.message
64 return f"{self.location.file}:{self.location.line}:{self.location.column}: {self.message}"
65
66
67class SchemaValidator:

Callers 2

_errorMethod · 0.85
_warningMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected