package
0.6.1
Repository: https://github.com/oa-pass/metadata-schemas.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Load scans the provided list of files and directories recursively and produces a Map of schema id to parsed instance documents.
Merge merges multiple schema instances into a single one, folding in properties that do not overlap, and.
NewValidator creates a JSON schema validator instance for the given schema document.
Sorted produces a sorted slice of schemas, based on the following rules: If one schema is referenced by another in a $ref, then that schema appears before the other For schemas that are independent of one another, the one with the greatest number of form properties (/definitions/form/properties) appears before those that have fewer.

# Structs

Validator validates an instance document against its schema.

# Interfaces

Fetcher fetches a parsed schema, given a URL.

# Type aliases

Instance is an instance of a parsed JSON schema (in generic map[string]interface{} form).
Map is a simple map of schema URIs to schema instances, serving as a static schema Fetcher.