Versions in this module Expand all Collapse all v0 v0.16.1 Oct 11, 2026 v0.16.0 Oct 7, 2026 Changes in this version + type Check struct + Name string + Pointer string + Reason string + Source string + Status CheckStatus + URI string + type CheckStatus string + const CheckComplete + const CheckIncomplete + type Code string + const CodeAction + const CodeAdvisory + const CodeDependency + const CodeDuplicateID + const CodeExpression + const CodeForwardReference + const CodeInputSchema + const CodeParameter + const CodeReference + const CodeSelector + const CodeSourceType + const CodeStructure + type Diagnostic struct + Code Code + Message string + Related []Location + SchemaPointer string + Severity Severity + type Document struct + Root *yaml.Node + URI string + type Error struct + Cause error + Kind ErrorKind + Location Location + func (e *Error) Error() string + func (e *Error) Unwrap() error + type ErrorKind string + const ErrorConfiguration + const ErrorInput + const ErrorLimit + const ErrorOperational + const ErrorUnsupported + type Limits struct + MaxBytes int + MaxDepth int + MaxDiagnostics int + MaxNodes int + MaxPatternBytes int + MaxSources int + func DefaultLimits() Limits + type Location struct + Column int + Line int + Pointer string + URI string + type Option func(*options) error + func WithAdvisories() Option + func WithBaseURI(uri string) Option + func WithLimits(limits Limits) Option + func WithResolver(resolver source.SourceDocumentResolver) Option + func WithSources(candidates ...source.CandidateDocument) Option + type Result struct + Checks []Check + Complete bool + Diagnostics []Diagnostic + Version string + func Validate(ctx context.Context, doc Document, opts ...Option) (*Result, error) + func ValidateBytes(ctx context.Context, data []byte, uri string, opts ...Option) (*Result, error) + func (r *Result) Valid() bool + type Severity string + const SeverityError + const SeverityWarning