Skip to content

Releases: omissis/go-jsonschema

v0.12.1

11 Jul 09:00
Compare
Choose a tag to compare

What's Changed

  • fix(deps): update golang.org/x/exp digest to 97b1e66 by @renovate in #89
  • feature(tests): add special characters test by @omissis in #91
  • fix(deps): update golang.org/x/exp digest to fffb143 by @renovate in #92
  • fix: refine additional properties default values by @omissis in #93

Full Changelog: v0.12.0...v0.12.1

v0.12.0

25 Jun 11:45
Compare
Choose a tag to compare

This release brings in the ability to specify which struct tags are dumped on the struct for (de)serialization purposes.
Secondarily, some deps and tools were updated.

What's Changed

  • chore(deps): update golang docker tag to v1.20.4 by @renovate in #77
  • fix(deps): update golang.org/x/exp digest to dd950f8 by @renovate in #78
  • fix(deps): update golang.org/x/exp digest to 2e198f4 by @renovate in #81
  • chore(deps): update dependency golangci-lint to v1.53.0 by @renovate in #82
  • chore(deps): update dependency golangci-lint to v1.53.1 by @renovate in #83
  • chore(deps): update dependency golangci-lint to v1.53.2 by @renovate in #84
  • chore(deps): update golang docker tag to v1.20.5 by @renovate in #85
  • chore(deps): update dependency golangci-lint to v1.53.3 by @renovate in #87
  • chore(deps): update dependency shfmt to v3.7.0 by @renovate in #88
  • feat: add support for --tags flag by @codeboten in #80

New Contributors

Full Changelog: v0.11.0...v0.12.0

v0.11.0

01 May 14:59
Compare
Choose a tag to compare

Summary

This release introduces a few interesting features:

  • unmarshal data structure from yaml files
  • create struct names from titles instead of filenames
  • ipv4 and ipv6 validation for strings
  • support for mapstructure tags

What's Changed

  • fix(deps): update module github.com/goccy/go-yaml to v1.11.0 by @renovate in #67
  • fix(deps): update module github.com/pkg/errors to v0.9.1 by @renovate in #69
  • fix(deps): update module github.com/spf13/cobra to v1.7.0 by @renovate in #70
  • feat: added YAML unmarshaller by @shanduur in #63
  • chore(deps): update goreleaser/goreleaser-action action to v4 by @renovate in #72
  • chore(deps): update actions/setup-go action to v4 by @renovate in #71
  • feat: add option to create struct names from schema titles by @teq0 in #73
  • feat: added mapstructure tags by @shanduur in #62
  • feat: translate ip strings to net netip by @omissis in #75
  • chore: add regression tests for additionalProperties as highlighted in issue #32 and #51 by @omissis in #76

New Contributors

Full Changelog: v0.10.0...v0.11.0

v0.10.0

14 Apr 15:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.9.0...v0.10.0

v0.9.0

21 May 09:18
Compare
Choose a tag to compare
  • Fix broken tests
  • Add for single type prop (@liyichao)
  • Add support for $id keyword (Emil Shakirov)
  • Fixes for minimum and maximum (@haya14busa)
  • Add support for adding custom imports.
  • Add YAML support. Adds --yaml-extension flag.

v0.7.0

12 Mar 18:13
Compare
Choose a tag to compare
  • Sort declarations in Go output by name, for consistency.
  • Remove enum caching, as it causes issues between unrelated types.

v0.6.0

12 Mar 18:03
Compare
Choose a tag to compare
  • Support - as output argument, meaning standard output.
  • Automatically create output directory if it doesn't exist.
  • Fix wrong usage help for --schema-output and --schema-root-type.
  • Add flag --resolve-extension, e.g. --resolve-extension .json.
  • Support "type" declared as array of types. Limited validation so far.

v0.5.0

05 Oct 20:42
Compare
Choose a tag to compare
  • Detect cyclical dependencies between types that reference each other.
  • Better handling of enum declarations.

v0.4.0

04 Oct 20:34
Compare
Choose a tag to compare
Sort definitions by name for consistency.

v0.0.4

02 Oct 18:59
Compare
Choose a tag to compare
Fix tests to not reuse generator instance, which is stateful.