Releases: santhosh-tekuri/jsonschema
Releases · santhosh-tekuri/jsonschema
v5.0.1
- support $ref with URN+pointer and URN+fragment
- keyword expecting int can have decimal
v5.0.0
New Features:
- license changed from BSD-3 Clause to Apache-2.0
- implements draft 2020-12 specification
- implement output formats flag, basic and detailed
- cmd/jv: add -output flag
- extract $comment, writeOnly, deprecated metadata annotations
Incompatible Changes:
- if no $schema specified, default to Draft2020
- replaced SchemeNotRegisteredError with LoaderNotFoundError
- ValidateInterface method renamed to Validate
- ValidationError now captures keywordLocations
v4.0.0
New Features
- draft 2019-09 support
- detects infinite loop in schemas
- new flag
-draft
in commandjv
- add examples in godoc
Bug Fixes
- eca6e45 sometimes $id getting applied more than once
- 1b9ea47 Compiler.Compile always return *SchemaError
Incompatible Changes
- extension api changed
- if "$schema" missing, it defaults to draft 2019-09 (latest) unless overridden
v3.1.0
features:
- time and date-time formats now understand leap-second
- new formats duration, uuid are added
- jv command now supports optional -draft flag
changes:
- errors now implement GoStringer interface
the Error method now just returns single line - format ipv4 now rejects leading zeroes
- updated JSON-Schema-Test-Suite to latest
bugfixes:
- $ref should be resolved against current uribase
currently it is always resolved against root uri base
v3.0.2
- '$schema' attribute now supports https url
- '$schema' attribute value supports optional trailing hash(#)
v3.0.1: Changes
- FIX: panic on ValidateInterface without json.Number
- reduce number of allocations
v3.0.0: Major changes
- built-in formats from specification should ignore non-string values
- datetime format now allows case insensitivity for
t
ansz
- Fields in Schema struct of type big.Float are replaced with bit.Rat
- if the schema refers to hyperschema, do not go to internet
v2.1.0: * new field Compiler.LoadURL allows to override global LoadURL
- new field Compiler.LoadURL allows to override global LoadURL
- schema validation shows as many errors as possible