An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.1% on proxy.golang.org
Top 5.8% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org
Top 3.2% forks on proxy.golang.org

proxy.golang.org : github.com/santhosh-tekuri/jsonschema/v4

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: you can also validate go value using schema.ValidateInterface(interface{}) method. but the argument should not be user-defined struct. 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.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/santhosh-tekuri/jsonschema/v4
Keywords: draft2019-09 , draft2020-12 , draft4 , draft6 , draft7 , go , golang , golang-library , json , json-schema , jsonschema , validation , validator
License: BSD-3-Clause
Latest release: almost 4 years ago
First release: almost 4 years ago
Namespace: github.com/santhosh-tekuri/jsonschema
Dependent packages: 1
Dependent repositories: 1
Stars: 571 on GitHub
Forks: 63 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 13 days ago

    Loading...
    Readme
    Loading...