Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct {
Path string `json:"path"` // JSON Pointer path, e.g., "/name" or "/non-schema"
Message string `json:"message"` // Human readable description
}
Issue represents a single schema validation error or warning.
type Result ¶
type Result struct {
Valid bool `json:"valid"` // true if no fatal errors exist
Schema *schema.SchemaInfo `json:"schema"` // metadata about the schema used
Errors []Issue `json:"errors"` // fatal validation error issues
Warnings []Issue `json:"warnings,omitempty"` // non-fatal warnings (e.g., unknown top-level fields)
}
Result holds the validation status, schema metadata, errors, and warnings.
Click to show internal directories.
Click to hide internal directories.