Skip to content

Releases: google/jsonschema-go

v0.4.2

19 Dec 13:33
@jba jba
e5cd592

Choose a tag to compare

The only change here is that an empty map in Schema.Properties will result in an empty object in the JSON.

This fixes v0.4.1.

v0.4.0

17 Dec 19:40
@jba jba
eb36139

Choose a tag to compare

This release adds Draft 07 support and the PropertyOrder feature.

It also fixes various minor bugs.

What's Changed

  • Add range limits to inferred Schemas of int types. by @baptmont in #30
  • jsonschema: handle embedding of custom schemas by @jba in #32
  • feat: add nested subschema defaults application by @thefishhat in #38
  • Fix for Issue #44 by @naivary in #45
  • fix: infer - missing nullable type for non Go types by @rafaeljusto in #42
  • Add Draft 07 support by @baptmont in #50
  • doc omitzero for inference by @jba in #55
  • remove struct from validate doc by @jba in #54
  • fix: infer - arrays should always accept null by @rafaeljusto in #49
  • jsonschema: use value receiver for Schema.MarshalJSON by @zyfxgo in #52
  • do not support ApplyDefaults on structs by @jba in #57
  • Add PropertyOrder by @baptmont in #51

New Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.0

22 Sep 18:31
@jba jba
2a1c0a4

Choose a tag to compare

Breaking Changes

The key of ForOptions.TypeSchemas is now reflect.Type instead of any, because some types can't be map keys.

Validating structs directly cannot be done in general, so the ability to do so has been removed. See #23.

What's Changed

  • jsonschema: faster checks for the false schema by @findleyr in #25
  • make struct validation fail by @jba in #28
  • jsonschema: change TypeSchemas key to reflect.Type by @jba in #29

Full Changelog: v0.2.3...v0.3.0

v0.2.3

12 Sep 14:59
bbdc431

Choose a tag to compare

What's Changed

  • jsonschema: support applying defaults to interface values; better errors by @findleyr in #21

New Contributors

Full Changelog: v0.2.2...v0.2.3

v0.2.2

10 Sep 20:12
c3d0b57

Choose a tag to compare

What's Changed

Full Changelog: v0.2.1...v0.2.2

v0.2.1

09 Sep 08:52
@jba jba
7d3a774

Choose a tag to compare

This point release has one bug fix and some minor doc changes.

What's Changed

  • improve docs by @jba in #7
  • LICENSE: update authors to JSON Schema Go Project Authors by @samthanawalla in #8
  • don't record schemas in map during inference by @jba in #9
  • Update README.md to call Go Go, rather than GO by @yurivish in #11

New Contributors

Full Changelog: v0.2.0...v0.2.1

v0.2.0

07 Aug 18:26

Choose a tag to compare

Breaking Changes

  • This downgrades the go.mod to 1.23.0

v0.1.0

07 Aug 18:13
828f7f2

Choose a tag to compare

This CL tags v0.1.0 of the jsonschema-go repo.