Releases: omissis/go-jsonschema
Releases · omissis/go-jsonschema
v0.12.1
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
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
- @codeboten made their first contribution in #80
Full Changelog: v0.11.0...v0.12.0
v0.11.0
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
What's Changed
- Accept boolean value for a JSON Schema by @au-phiware in #29
- More helpful error messages by @kwuerl in #19
- add support for min and max items - fix sprintf error by @tjungblu in #30
- Nullable types by @zapling in #37
- fix installation instruction by @pantafive in #48
- Fix multiple interfaces for enum appearing from multiple references to it by @daa in #47
- Review and merge all upstream's pull requests by @omissis in #52
- feature/improve tooling by @omissis in #64
- Configure Renovate by @renovate in #65
New Contributors
- @au-phiware made their first contribution in #29
- @kwuerl made their first contribution in #19
- @tjungblu made their first contribution in #30
- @zapling made their first contribution in #37
- @pantafive made their first contribution in #48
- @daa made their first contribution in #47
- @omissis made their first contribution in #52
- @renovate made their first contribution in #65
Full Changelog: v0.9.0...v0.10.0
v0.9.0
- 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
- Sort declarations in Go output by name, for consistency.
- Remove enum caching, as it causes issues between unrelated types.
v0.6.0
- 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
- Detect cyclical dependencies between types that reference each other.
- Better handling of enum declarations.
v0.4.0
Sort definitions by name for consistency.
v0.0.4
Fix tests to not reuse generator instance, which is stateful.