Skip to content

Releases: sagold/json-schema-library

v11.2.0

09 Apr 19:44
6882a0e

Choose a tag to compare

What's Changed

  • introduced throwOnInvalidRef to abort validation when a $ref cannot be resolved
  • added export of meta-schema for all drafts using import "json-schema-library/remotes"
  • added support for format validations: idn-hostname, iri, iri-reference

Full Changelog: v11.1.0...v11.2.0

v11.1.0

29 Mar 23:03
555b196

Choose a tag to compare

  • introduced upcoming keyword propertyDependenciesKeyword to package export
  • added support for keyword deprecatedMessage
  • introduced schema validation errors and unused keyword annotations

Full Changelog: v11.0.0...v11.1.0

v11.0.0

13 Feb 22:51
c3d4c2b

Choose a tag to compare

v11.0.0

  • introduced annotations
  • added node.createAnnotation helper
  • changed typing to strict
  • added annotations-list to validate() result
  • added keyword support for deprecated: true which returns a deprecated-warning annotation
  • added support for ref resolution in getSchemaType
  • introduced esm module export
  • fixed typo in argument disableRecusionLimit disableRecursionLimit
  • added settings to exports for global changes of settings
  • introduce setting REGEX_FLAGS and schema-property regexFlags to customize regex flags to use evaluating regex
  • fixed an issue resolving non-URI compatible $ref-targets containing #/definitions

breaking changes:

  • Return type of validators is now ValidationReturnType instead of ValidationResult
  • type AnnotationData replaces ErroData

v10.2.0

17 Aug 11:49
f92bbdb

Choose a tag to compare

What's Changed

  • Add useTypeDefaults option to toggle use of type specific initial values by @manisatwick in #75

New Contributors

Full Changelog: v10.1.2...v10.2.0

v10.0.0

03 May 09:45
1c836f2

Choose a tag to compare

  • Added support for draft-2019-09 and draft-2020-12
  • Full compliance to JSON Schema Test-Suite from draft04 to draft-2020-12
  • Simplified API Usage

Refer to list of breaking changes for upgrading json-schema-library.

v9.2.1

25 Mar 12:11
c8417d7

Choose a tag to compare

  • add: getTemplate option extendDefaults to prevent modifying default values for arrays and objects
  • fix: merge getTemplate options with default options
  • fix: replace getTemplate local default options by global settings options

v9.1.1

17 Sep 18:49

Choose a tag to compare

  • fix issue in allOf wrongly merging sub-schemas

Full Changelog: v9.1.0...v9.1.1

9.1.0

17 Sep 10:44

Choose a tag to compare

  • added validation of format "idn-email"

Full Changelog: v9.0.3...v9.1.0

v9.0.2

24 Aug 06:10

Choose a tag to compare

What's Changed

  • format validation for email, date, date-time and time are now valid if string is empty

Full Changelog: v9.0.1...v9.0.2

v9.0.1

15 Aug 15:38

Choose a tag to compare

Fixes floating point issue in multipleOf validation

Full Changelog: v9.0.0...v9.0.1