Skip to content

Add JSON schema validation example bundle - #66

Merged
vogella merged 2 commits into
mainfrom
json-schema-validation
Aug 20, 2026
Merged

Add JSON schema validation example bundle#66
vogella merged 2 commits into
mainfrom
json-schema-validation

Conversation

@vogella

@vogella vogella commented Aug 20, 2026

Copy link
Copy Markdown
Member

Adds a new com.vogella.json.validation bundle that shows how to validate a JSON document against a JSON schema using the networknt json-schema-validator, together with a test fragment that covers both the valid and the invalid document case.

The validator is pulled in through the target platform as a Maven location dependency, so it resolves the same way in the IDE and in the Tycho build. Both bundles are wired into the reactor, which means the example is compiled and its tests are executed on every build instead of only living as documentation.

Adds com.vogella.json.validation demonstrating JSON schema validation with
the networknt json-schema-validator, plus a test fragment covering the valid
and invalid document cases. The validator is added to the target platform as
a Maven location dependency.
The 2026-06 simultaneous release ships the jakarta.annotation package at
3.0.0 and no longer provides a 2.1.x version, so the upper bound of
[2.1.0,3.0.0) made the target platform unresolvable and broke the build.
Widen the range to [2.1.0,4.0.0) in the four bundles importing the package.
@vogella
vogella merged commit f3ac651 into main Aug 20, 2026
1 check passed
@vogella
vogella deleted the json-schema-validation branch August 20, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant