Releases: omissis/go-jsonschema
v0.17.0
Highlights
- Implement pattern validation for strings
- Implement numeric validation
- Introduce unmarshalling for additional properties
- Update go to 1.22.8 in ci and dev
- Allow CustomNameTypes to specify nillability
What's Changed
- chore(deps): update actions/checkout digest to 1d96c77 by @renovate in #219
- chore(deps): update actions/checkout digest to 0ad4b8f by @renovate in #221
- Allow
CustomNameType
s to specify nillability by @andrew-farries in #220 - chore(deps): update dependency golangci-lint to v1.58.0 by @renovate in #222
- fix(deps): update module golang.org/x/exp to v0.0.0-20240506185415-9bf2ced13842 by @renovate in #223
- chore(deps): update golang docker tag to v1.22.3 by @renovate in #224
- chore(deps): update actions/checkout digest to 44c2b7a by @renovate in #225
- chore(deps): update dependency golangci-lint to v1.58.1 by @renovate in #226
- chore(deps): update actions/checkout digest to 0ad4b8f by @renovate in #227
- chore(deps): update dependency golangci-lint to v1.58.2 by @renovate in #228
- chore(deps): update actions/checkout digest to a5ac7e5 by @renovate in #229
- fix(deps): update golang.org/x/exp digest to 4c93da0 by @renovate in #230
- chore(deps): update dependency golangci-lint to v1.59.0 by @renovate in #232
- fix(deps): update golang.org/x/exp digest to 23cca88 by @renovate in #233
- fix(deps): update golang.org/x/exp digest to 404ba88 by @renovate in #234
- fix(deps): update golang.org/x/exp digest to fd00a4e by @renovate in #235
- fix(deps): update golang.org/x/exp digest to fc45aab by @renovate in #236
- chore(deps): update dependency golang to v1.22.4 by @renovate in #237
- docs: correct
go
version requirement by @jamietanna in #240 - chore(deps): update goreleaser/goreleaser-action action to v6 by @renovate in #238
- chore(deps): update dependency golangci-lint to v1.59.1 by @renovate in #245
- chore(deps): update actions/checkout digest to 692973e by @renovate in #247
- fix(deps): update golang.org/x/exp digest to 7f521ea by @renovate in #248
- fix(deps): update module github.com/spf13/cobra to v1.8.1 by @renovate in #249
- fix(deps): update golang.org/x/exp digest to 46b0784 by @renovate in #252
- chore(deps): update dependency golang to v1.22.5 by @renovate in #253
- fix(deps): update module github.com/goccy/go-yaml to v1.12.0 by @renovate in #254
- fix(deps): update golang.org/x/exp digest to e3f2596 by @renovate in #255
- fix(deps): update golang.org/x/exp digest to 8a7402a by @renovate in #256
- chore(deps): update dependency golang to v1.22.6 by @renovate in #258
- fix(deps): update golang.org/x/exp digest to 0cdaa3a by @renovate in #260
- chore(deps): update dependency golang to v1.23.0 by @renovate in #261
- chore(deps): update dependency golangci-lint to v1.60.0 by @renovate in #262
- chore(deps): update dependency golangci-lint to v1.60.1 by @renovate in #263
- chore(deps): update dependency shfmt to v3.9.0 by @renovate in #265
- chore(deps): update dependency golangci-lint to v1.60.2 by @renovate in #266
- fix(deps): update golang.org/x/exp digest to 778ce7b by @renovate in #267
- fix(deps): update golang.org/x/exp digest to 9b4947d by @renovate in #268
- chore(deps): update dependency golangci-lint to v1.60.3 by @renovate in #269
- fix(deps): update golang.org/x/exp digest to e7e105d by @renovate in #270
- chore(deps): update dependency golang to v1.23.1 by @renovate in #271
- chore(deps): update dependency golangci-lint to v1.61.0 by @renovate in #273
- chore: update deps 20240914 by @omissis in #274
- Add pattern, support reference constraints on primitives, and add number/integer constraints by @nolag in #264
- fix(deps): update module github.com/stretchr/testify to v1 by @renovate in #277
- chore(deps): update dependency go to v1.23.2 by @renovate in #286
- chore(deps): update dependency golang to v1.23.2 by @renovate in #287
- fix(deps): update golang.org/x/exp digest to 225e2ab by @renovate in #289
- chore(deps): update actions/checkout digest to eef6144 by @renovate in #290
- fix(deps): update golang.org/x/exp digest to f66d83c by @renovate in #292
- chore(deps): update dependency shfmt to v3.10.0 by @renovate in #294
- chore(deps): update actions/checkout digest to 11bd719 by @renovate in #298
- Additional Properties do not get unmarshalled by @omissis in #278
- update go to 1.22.8 by @omissis in #299
New Contributors
- @andrew-farries made their first contribution in #220
- @jamietanna made their first contribution in #240
- @nolag made their first contribution in #264
Full Changelog: v0.16.0...v0.17.0
v0.16.0
This release introduces several new improvements:
- Improve support for non-case-sensitive languages
- Make generated go more stable, and solve annoying big diffs
- Fix generated code for non-nullable types with two options
- Removes nil check for
required
properties - Add support for additionalProperties when other fields exist
What's Changed
- Enhance splitIdentifierByCaseAndSeparators to support non-case-sensitive languages by @zrma in #170
- Stable output: Add some more names to anonymous Method classes by @RobQuistNL in #169
- Fix non-nullable type with two options by @jagregory in #205
- Removes nil check for
required
properties by @Henkoglobin in #215 - Add support for additionalProperties when other fields exist by @codeboten and @omissis in #218
- Update go and all deps by @omissis in #217
- Several @renovate PRs
- fix(deps): update golang.org/x/exp digest to 1b97071 by @renovate in #190
- fix(deps): update module github.com/goccy/go-yaml to v1.11.3 by @renovate in #191
- fix(deps): update golang.org/x/exp digest to 2c58cdc by @renovate in #193
- chore(deps): update golang docker tag to v1.22.0 by @renovate in #195
- chore(deps): update dependency golangci-lint to v1.56.0 by @renovate in #196
- chore(deps): update dependency golangci-lint to v1.56.1 by @renovate in #197
- chore(deps): update dependency shfmt to v3.8.0 by @renovate in #198
- fix(deps): update golang.org/x/exp digest to ec58324 by @renovate in #199
- chore(deps): update dependency golangci-lint to v1.56.2 by @renovate in #200
- fix(deps): update golang.org/x/exp digest to 814bf88 by @renovate in #201
- chore(deps): update golang docker tag to v1.22.1 by @renovate in #202
- chore(deps): update dependency shellcheck to v0.10.0 by @renovate in #203
- chore(deps): update codecov/codecov-action action to v4 by @renovate in #192
- fix(deps): update golang.org/x/exp digest to c7f7c64 by @renovate in #206
- fix(deps): update golang.org/x/exp digest to a85f2c6 by @renovate in #207
- chore(deps): update dependency golangci-lint to v1.57.0 by @renovate in #208
- chore(deps): update dependency golangci-lint to v1.57.1 by @renovate in #209
- fix(deps): update golang.org/x/exp digest to a685a6e by @renovate in #210
- chore(deps): update dependency golangci-lint to v1.57.2 by @renovate in #211
- chore(deps): update golang docker tag to v1.22.2 by @renovate in #212
- fix(deps): update golang.org/x/exp digest to c0f41cb by @renovate in #213
- fix(deps): update golang.org/x/exp digest to 93d18d7 by @renovate in #214
- fix(deps): update golang.org/x/exp digest to fe59bbe by @renovate in #216
New Contributors
- @zrma made their first contribution in #170
- @RobQuistNL made their first contribution in #169
- @jagregory made their first contribution in #205
- @Henkoglobin made their first contribution in #215
- @codeboten made their first contribution in #218 (replaces #189)
Full Changelog: v0.15.0...v0.16.0
v0.15.0
This release introduces one new feature and a fix:
- support for
file://
schema in references - support for yaml file references
What's Changed
- feat: add support for "file://" schema in $refs by @omissis in #147
- fix: support for yaml file references by @johanneswuerbach in #179
- chore: split generate.go file by @AlbertoBarba in #153
- chore(deps): update dependency golangci-lint to v1.55.2 by @renovate in #162
- chore(deps): update golang docker tag to v1.21.4 by @renovate in #165
- chore(deps): update golang docker tag to v1.21.5 by @renovate in #174
- chore(deps): update actions/setup-go action to v5 by @renovate in #175
- chore(deps): update golang docker tag to v1.21.6 by @renovate in #184
- fix(deps): update module github.com/spf13/cobra to v1.8.0 by @renovate in #163
- fix(deps): update golang.org/x/exp digest to 2478ac8 by @renovate in #166
- fix(deps): update golang.org/x/exp digest to 9a3e603 by @renovate in #168
- fix(deps): update golang.org/x/exp digest to 6522937 by @renovate in #172
- fix(deps): update golang.org/x/exp digest to f3f8817 by @renovate in #176
- fix(deps): update golang.org/x/exp digest to aacd6d4 by @renovate in #178
- fix(deps): update golang.org/x/exp digest to dc181d7 by @renovate in #180
- fix(deps): update golang.org/x/exp digest to 02704c9 by @renovate in #181
- fix(deps): update golang.org/x/exp digest to be819d1 by @renovate in #182
- fix(deps): update golang.org/x/exp digest to 0dcbfd6 by @renovate in #185
- fix(deps): update golang.org/x/exp digest to db7319d by @renovate in #186
New Contributors
- @johanneswuerbach made their first contribution in #179
Full Changelog: v0.14.1...v0.15.0
v0.14.1
What's Changed
- fix: configure maxLength to work as suggested by the jsonschema docs by @lucasvmiguel in #156
- chore(deps): update dependency golang to v1.21.3 by @renovate in #149
- chore(deps): update golang docker tag to v1.21.3 by @renovate in #154
- chore(deps): update actions/checkout digest to b4ffde6 by @renovate in #157
- chore(deps): update dependency golangci-lint to v1.55.0 by @renovate in #158
- chore(deps): update dependency golangci-lint to v1.55.1 by @renovate in #160
New Contributors
- @lucasvmiguel made their first contribution in #156
Full Changelog: v0.14.0...v0.14.1
v0.14.0
This release introduces two big new features:
- the ability to generate plain go models (no marshalling, unmarshalling, and validation code)
- the ability to support friendly date and time string (de-)serializations
Secondarily, the entrypoint of the application has been moved to the root folder of the project, hence the go install is now shorter, and resolves to go-jsonschema instead of gojsonschema.
What's Changed
- feat: add an option to allow to generate only models by @AlbertoBarba in #128
- feat: update go and all its references to 1.21.2 by @omissis in #151
- feat: add support for date/time formats by @durandj in #98
- chore: move enum json & yaml generation in the related formatter by @AlbertoBarba in #134
- fix(deps): update golang.org/x/exp digest to 3e424a5 by @renovate in #150
- fix(deps): update golang.org/x/exp digest to 7918f67 by @renovate in #152
- feat(ci): add ci workflow specifically for pre-releases
New Contributors
Full Changelog: v0.13.1...v0.14.0-rc.0
v0.14.0-rc.1
fix(ci): tune the pre-release workflow
v0.14.0-rc.0
chore: move cli entrypoint to root
v0.13.1
v0.13.1-rc.0
What's Changed
This releases addresses the go install
problem highlighted in #131
- fix: rework tests in order to make the dedicated module work without replacements by @omissis in #148
Full Changelog: v0.13.0...v0.13.1-rc.0
v0.13.0
What's Changed
This release introduces some fixes around yaml umarshaling, generated types and validation, as well as it introduces a new set of tests aiming at better verifying the workings of generated code.
Highlights
- Enforce int primitive type for enum by @ksysoev in #126
- Correct definition of MultipleOf and ExclusiveMaximum. by @deep-creek in #127
- Only perform minItems validation when field is provided by @nick-jones in #122
- Yaml unmarshal does not implement the interface correctly by @AlbertoBarba in #113
- Introduce minLength and maxLength validation for strings by @AlbertoBarba in #111
Other updates
- fix(deps): update golang.org/x/exp digest to 06a737e by @renovate in #94
- chore(deps): update golang docker tag to v1.20.6 by @renovate in #95
- fix(deps): update golang.org/x/exp digest to 613f0c0 by @renovate in #96
- chore(deps): update golang docker tag to v1.20.7 by @renovate in #104
- chore(deps): update dependency golang to v1.21.0 by @renovate in #105
- chore(deps): update golang docker tag to v1.21.0 by @renovate in #106
- chore(deps): update dependency golangci-lint to v1.54.0 by @renovate in #107
- chore(deps): update dependency golangci-lint to v1.54.1 by @renovate in #108
- chore(deps): update dependency golangci-lint to v1.54.2 by @renovate in #109
- chore(deps): update golang docker tag to v1.21.1 by @renovate in #115
- fix(deps): update module github.com/goccy/go-yaml to v1.11.1 by @renovate in #119
- fix(deps): update module github.com/goccy/go-yaml to v1.11.2 by @renovate in #121
- chore(deps): update actions/checkout action to v4 by @renovate in #114
- chore(deps): update docker/login-action action to v3 by @renovate in #118
- chore(deps): update goreleaser/goreleaser-action action to v5 by @renovate in #117
- chore(deps): update actions/checkout digest to 8ade135 by @renovate in #124
- fix(deps): update github.com/atombender/go-jsonschema/tests/data digest to 8e2c4ff by @renovate in #123
- fix(deps): update golang.org/x/exp digest to 9212866 by @renovate in #101
- fix(deps): update github.com/atombender/go-jsonschema/tests/data digest to 5362d2e by @renovate in #125
New Contributors
- @nick-jones made their first contribution in #122
- @AlbertoBarba made their first contribution in #113
Full Changelog: v0.12.1...v0.13.0