Package Usage: go: github.com/santhosh-tekuri/jsonschema/v5
Package jsonschema provides json-schema compilation and validation.
Features:
The schema is compiled against the version specified in "$schema" property.
If "$schema" property is missing, it uses latest draft which currently implemented
by this library.
You can force to use specific draft, when "$schema" is missing, as follows:
This package supports loading json-schema from filePath and fileURL.
To load json-schema from HTTPURL, add following import:
you can validate yaml documents. see https://play.golang.org/p/sJy1qY7dXgA
Example_fromString shows how to load schema from string.
Example_fromStrings shows how to load schema from more than one string.
Example_userDefinedContent shows how to define
"hex" contentEncoding and "application/xml" contentMediaType
Example_userDefinedFormat shows how to define 'odd-number' format.
Example_userDefinedLoader shows how to define custom schema loader.
we are implementing a "map" protocol which servers schemas from
go map variable.
8 versions
Latest release: almost 2 years ago
815 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/santhosh-tekuri/jsonschema/v5