Releases: harrel56/json-schema
1.7.1
What's Changed
Fixes 🛠️
- Fix/draft7 id with empty fragment + fix StringIndexOutOfBoundsException by @harrel56 in #219
- Disallow resource path traversal for DefaultSchemaResolver by @harrel56 in #220
Dependencies 🗃️
- chore(deps): bump org.eclipse.parsson:parsson from 1.1.6 to 1.1.7 by @dependabot in #217
- chore(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json from 1.7.0 to 1.7.1 by @dependabot in #218
Full Changelog: 1.7.0...1.7.1
1.7.0
Important notice
Despite the fact that this is just a minor release, there are a few incompatible changes. I believe that they realistically shouldn't affect any users, but if you use this library in an uncommon or advanced way, I'd recommend to familiarize yourself with the "breaking changes" section below.
What's Changed
Breaking changes 🚨
Feature/cross spec by @harrel56 in #204
General revamp on handling dialects. It supports now cross-dialect references and dynamically infers which dialect should be used based on $schema value.
There are no direct API changes, only these methods change behavior slightly:
ValidatorFactory.withDisabledSchemaValidation()
- now, setting it totrue
does not disable vocabularies semantics as well (which I think was more of an unexpected side effect). It will use vocabularies fromDialect
instances (official or custom if provided). It still guarantees that meta-schemas will not be resolved, so e.g. schemas with"$schema": "http://json-schema.org/draft-03/schema#"
will not fail despite lack of draft3 support.ValidatorFactory.withDialect()
- previously, it served as a hard dialect override, meaning just this one dialect would be used regardless of$schema
keyword. Now, this method registers your custom dialect and can be called multiple times for multiple registrations.
There is one new method:
ValidatorFactory.withDefaultDialect()
- it serves similar purpose asValidatorFactory.withDialect()
previously did. By default, it's set on draf2020-12. It's just a fallback when schema does not contain$schema
keyword.
Refactor/handle vocabs in evaluator factory by @harrel56 in #211
If you've overridden Evaluator.getVocabularies()
, it will now have no effect as this method is no longer called by the library. If evaluator is dependent on active vocabularies state, it should now be handled in EvaluatorFactory
code.
New features 🎉
- Feature/draft7 support by @harrel56 in #212 - now
draft2020-12
,draft2019-09
anddraft-07
are supported - Feature/kotlinx json provider by @harrel56 in #197 - this might be useful for users who use Kotlin
Dependencies 🗃️
- chore(deps): bump org.jetbrains.kotlinx:kotlinx-serialization-json from 1.6.3 to 1.7.0 by @dependabot in #199
- chore(deps): bump org.junit.jupiter:junit-jupiter from 5.10.2 to 5.10.3 by @dependabot in #205
- chore(deps): bump org.junit.jupiter:junit-jupiter-engine from 5.10.2 to 5.10.3 by @dependabot in #206
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #214
- chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.17.1 to 2.17.2 by @dependabot in #208
- chore(deps): bump org.sonarqube from 5.0.0.4638 to 5.1.0.4882 by @dependabot in #209
- chore(deps): bump org.assertj:assertj-core from 3.26.0 to 3.26.3 by @dependabot in #210
Full Changelog: 1.6.1...1.7.0
1.6.1
What's Changed
Fixes 🛠️
- Allow to validate against subschemas (URI with fragments, either JSON pointer or anchor) by @harrel56 in #202
Dependencies 🗃️
- chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.17.0 to 2.17.1 by @dependabot in #189
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #191
- chore(deps): bump org.mockito:mockito-core from 5.11.0 to 5.12.0 by @dependabot in #192
- chore(deps): bump com.google.code.gson:gson from 2.10.1 to 2.11.0 by @dependabot in #193
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #194
- chore(deps): bump com.sanctionco.jmail:jmail from 1.6.2 to 1.6.3 by @dependabot in #195
- chore(deps): bump org.assertj:assertj-core from 3.25.3 to 3.26.0 by @dependabot in #196
- upgrade gradle to 8.8 by @harrel56 in #198
Full Changelog: 1.6.0...1.6.1
1.6.0
What's Changed
New features 🎉
Performance related 📈
- Chore/integer vs number recognition by @harrel56 in #167
- Performance: enum static failure message, additionalProperties small refactor by @harrel56 in #178
Fixes 🛠️
- Fix/unevaluated for evaluted errors by @harrel56 in #175
- Fix: return unmodifiable List/Map from JsonNode by @harrel56 in #179
- Fix: JsonNodeFatory.wrap - make it always consistently return "root" node (for JSON pointer calculations) by @harrel56 in #181
- Fix/use yaml constructors by @harrel56 in #186
- Fix: concurrent processing improvements by @harrel56 in #187
Dependencies 🗃️
- chore(deps): bump org.json:json from 20240205 to 20240303 by @dependabot in #166
- chore(deps): bump org.mockito:mockito-core from 5.10.0 to 5.11.0 by @dependabot in #165
- chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.16.1 to 2.16.2 by @dependabot in #168
- chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.16.2 to 2.17.0 by @dependabot in #169
- chore(deps): bump net.minidev:json-smart from 2.5.0 to 2.5.1 by @dependabot in #170
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #173
- chore(deps): bump org.sonarqube from 4.4.1.3373 to 5.0.0.4638 by @dependabot in #172
- chore(deps): bump org.eclipse.parsson:parsson from 1.1.5 to 1.1.6 by @dependabot in #174
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #176
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #177
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #183
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #184
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #188
Other
Full Changelog: 1.5.2...1.6.0
1.5.2
1.5.1
What's Changed
Features
Performance related
Dependencies
- bump gradle to 8.5 by @harrel56 in #113
- chore(deps): bump org.mockito:mockito-core from 5.7.0 to 5.8.0 by @dependabot in #114
- chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.16.0 to 2.16.1 by @dependabot in #118
- chore(deps): bump org.assertj:assertj-core from 3.24.2 to 3.25.0 by @dependabot in #119
- chore(deps): bump org.assertj:assertj-core from 3.25.0 to 3.25.1 by @dependabot in #121
- chore(deps): bump org.mockito:mockito-core from 5.8.0 to 5.9.0 by @dependabot in #122
- chore(deps): bump org.mockito:mockito-core from 5.9.0 to 5.10.0 by @dependabot in #127
- chore(deps): bump org.assertj:assertj-core from 3.25.1 to 3.25.2 by @dependabot in #128
- bump gh-actions versions by @harrel56 in #131
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #138
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #139
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #140
- chore(deps): bump org.junit.jupiter:junit-jupiter from 5.10.1 to 5.10.2 by @dependabot in #141
- chore(deps): bump org.assertj:assertj-core from 3.25.2 to 3.25.3 by @dependabot in #144
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #145
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #146
- chore(test-suite): incremental test suite update from upstream by @harrel56 in #151
- chore(deps): bump org.json:json from 20231013 to 20240205 by @dependabot in #152
Other
- update custom keywords docs section by @harrel56 in #115
- add links to readme by @harrel56 in #116
- Chore/refactor abstract node factory by @harrel56 in #132
- Auto update test suite with GH action by @harrel56 in #134
Full Changelog: 1.5.0...1.5.1
1.5.0
What's Changed
Features
- Feature/format validation by @harrel56 in #107 - for details see https://github.com/harrel56/json-schema#format-validation
Fixes
Dependencies
- chore(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.15.3 to 2.16.0 by @dependabot in #105
Full Changelog: 1.4.3...1.5.0
1.4.3
1.4.2
1.4.1
What's Changed
- chore(deps): bump org.junit.jupiter:junit-jupiter-api from 5.10.0 to 5.10.1 by @dependabot in #87
- chore(deps): bump org.junit.jupiter:junit-jupiter from 5.10.0 to 5.10.1 by @dependabot in #88
- chore(deps): bump org.junit.jupiter:junit-jupiter-engine from 5.10.0 to 5.10.1 by @dependabot in #89
- chore(deps): bump org.mockito:mockito-core from 5.6.0 to 5.7.0 by @dependabot in #90
- Feature/perf tweaks by @harrel56 in #92
Full Changelog: 1.4.0...1.4.1