Skip to content

Releases: santhosh-tekuri/jsonschema

v5.0.1

14 Sep 11:39
Compare
Choose a tag to compare
  • support $ref with URN+pointer and URN+fragment
  • keyword expecting int can have decimal

v5.0.0

02 Sep 14:22
Compare
Choose a tag to compare

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

15 Aug 22:04
Compare
Choose a tag to compare

New Features

  • draft 2019-09 support
  • detects infinite loop in schemas
  • new flag -draft in command jv
  • 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

02 Aug 08:05
Compare
Choose a tag to compare

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

02 Aug 08:06
Compare
Choose a tag to compare
  • '$schema' attribute now supports https url
  • '$schema' attribute value supports optional trailing hash(#)

v3.0.1: Changes

25 Feb 12:06
Compare
Choose a tag to compare
  • FIX: panic on ValidateInterface without json.Number
  • reduce number of allocations

v3.0.0: Major changes

25 Feb 07:32
Compare
Choose a tag to compare
  • built-in formats from specification should ignore non-string values
  • datetime format now allows case insensitivity for t ans z
  • 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

30 Jul 08:46
Compare
Choose a tag to compare
  • new field Compiler.LoadURL allows to override global LoadURL
  • schema validation shows as many errors as possible