Versions in this module Expand all Collapse all v0 v0.45.0 Nov 29, 2026 Changes in this version + const Dialect + var ErrNotSchema = errors.New("expected a Draft 2020-12 JSON Schema declaration") + func Compare(left, right *Document, rules *wc.BreakingRulesConfig) (*wc.SchemaChanges, error) + func MatchResources(left, right *Document) map[*Resource]*Resource + func PropertyPath(path, key string) string + type Document struct + References []Reference + Resources []*Resource + Rolodex *index.Rolodex + Root *Resource + Sources map[string]*Source + func Load(data []byte, source string, config *datamodel.DocumentConfiguration, ...) (*Document, error) + func LoadCollection(members map[string][]byte, directory string, ...) (*Document, error) + func (d *Document) IsSchema(node *yaml.Node) bool + func (d *Document) Release() + type MemberError struct + Err error + Name string + func (e *MemberError) Error() string + func (e *MemberError) Unwrap() error + type Reference struct + From *yaml.Node + Keyword string + To *yaml.Node + Value string + type Resource struct + ID string + Node *yaml.Node + Pointer string + Source *Source + func (r *Resource) Label() string + type Source struct + Data []byte + Index *index.SpecIndex + Name string + Node *yaml.Node