If you take a look at JSON schema site, there are only two libraries for validation in Java.

  1. The one that Jorge Campos suggested is mature, but looking for new maintainer: https://github.com/fge/json-schema-validator
  2. Second one is relatively new: http://github.com/everit-org/json-schema

I was recently in situation where I had to choose one or the other and I picked first option. It is being used also by Rest Assured library under the hood.

Answer from luboskrnac on Stack Overflow
๐ŸŒ
Medium
medium.com โ€บ @mohommad.belal โ€บ json-schema-validator-using-java-springboot-667ed42480d5
JSON Schema Validator using Java SpringBoot. | Medium
May 11, 2024 - Please note, that you can select any version of spring-boot and java as well as project type. We will use the networknt:json-schema-validator library.
๐ŸŒ
MS Charhag
mscharhag.com โ€บ spring โ€บ json-schema-validation-handlermethodargumentresolver
Integrating JSON Schema validation in Spring using a custom HandlerMethodArgumentResolver
We learned how to integrate JSON Schema validation into a Spring Boot application by implementing a custom HandlerMethodArgumentResolver. Within our implementation we validate the JSON request body against a JSON Schema before it is passed as argument to the controller.
Discussions

How to validate incoming request body JSON fields and POJO class fields in the endpoint
You can use spring-validation library for this More on reddit.com
๐ŸŒ r/SpringBoot
12
7
March 16, 2023
does anyone know the JSON schema for application.yaml for spring boot?
this plugin provides tons of Jason schema for both yamlls and jsonls. Maybe it could help you More on reddit.com
๐ŸŒ r/neovim
9
2
January 9, 2023
๐ŸŒ
GitHub
github.com โ€บ JanLoebel โ€บ json-schema-validation-starter
GitHub - JanLoebel/json-schema-validation-starter: Spring Boot 2 Starter for Json Schema Validation
After that simply create a json-schema and put it into e.g.: resources/jsonschema/book.json. The last step is now to let your entity know that it should be validated and which schema it should use. @JsonSchemaValidation("classpath:jsonschema/book.json") public class Book { private String title; private String author; }
Starred by 9 users
Forked by 6 users
Languages ย  Java 100.0% | Java 100.0%
๐ŸŒ
Jamie Tanna
jvt.me โ€บ posts โ€บ 2021 โ€บ 12 โ€บ 20 โ€บ validate-json-schema-spring-response
Validating a Spring (Boot) Response Matches JSON Schema with MockMVC ยท Jamie Tanna | Software Engineer
December 20, 2021 - Today I've been looking at how you can do this through MockMVC and found that although it's not a first-class citizen (at time of writing) with Spring's ContentResultMatchers, it's actually straightforward to do using Rest Assured's standalone json-schema-validator dependency.
๐ŸŒ
Medium
medium.com โ€บ @AlexanderObregon โ€บ data-validation-for-api-requests-in-spring-boot-with-json-schema-c109acbd325c
Data Validation for API Requests in Spring Boot with JSON Schema
August 16, 2025 - JSON Schema validation in Spring Boot works by fitting a clear set of checks into the request pipeline before mapping happens. The schema is prepared ahead of time, incoming JSON is read and tested against it, and only matching data moves forward ...
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ json โ€บ introduction to json schema in java
Introduction to JSON Schema in Java
November 27, 2024 - With our JSON Schema put in place, we can validate our JSON Object. There are many libraries to accomplish this task. For our example, we have chosen the Java json-schema library.
Find elsewhere
๐ŸŒ
GitHub
github.com โ€บ rzats โ€บ json-schema-validator
GitHub - rzats/json-schema-validator: :card_index: A REST service for validating JSON documents against JSON schemas. ยท GitHub
A REST service for validating JSON documents against JSON schemas. Uses Spring Boot for the RESTful web service and RocksDB with the RocksJava bindings as persistent storage.
Author ย  rzats
๐ŸŒ
Apache Camel
camel.apache.org โ€บ apache camel โ€บ camel components โ€บ 4.14.x (lts) โ€บ components โ€บ json schema validator
JSON Schema Validator :: Apache Camel
The JSON Schema Validator component performs bean validation of the message body against JSON Schemas v4, v6, v7, v2019-09 draft and v2020-12(partial) using the NetworkNT JSON Schema library (https://github.com/networknt/json-schema-validator).
๐ŸŒ
GitHub
github.com โ€บ networknt โ€บ json-schema-validator
GitHub - networknt/json-schema-validator: A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12 ยท GitHub
A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12 - networknt/json-schema-validator
Starred by 1K users
Forked by 338 users
Languages ย  Java 98.6% | Python 1.4%
๐ŸŒ
GitHub
github.com โ€บ UnitVectorY-Labs โ€บ jsonschema4springboot
GitHub - UnitVectorY-Labs/jsonschema4springboot: Add JSON Schema Validation to Spring Boot 3 with Annotations
This library provides an annotation for deserializing JSON in Spring Boot 3 to include JSON Schema validation as part of the process using the networknt/json-schema-validator library.
Author ย  UnitVectorY-Labs
๐ŸŒ
GitHub
github.com โ€บ novotnyr โ€บ spring-jsonschema-validation
GitHub - novotnyr/spring-jsonschema-validation: Adds support for JSON Schema validation in Spring MVC Controllers
Adds support for JSON Schema validation in Spring MVC Controllers - novotnyr/spring-jsonschema-validation
Starred by 7 users
Forked by 3 users
Languages ย  Java 100.0% | Java 100.0%
๐ŸŒ
Java Code Geeks
javacodegeeks.com โ€บ home โ€บ enterprise java
JSON Schema validation in Java - Java Code Geeks
August 6, 2020 - In this post we will see how to ... in Java. We will use the same JSON document and Schema as in the previous post about JSON Schema. You can find both as text files on GitHub: JSON document and JSON Schema. We use the networknt JSON Schema validator library in this example. This library seems like a good fit because it supports the latest JSON Schema version (2019-09) and uses Jackson as JSON library. This makes it easy to integrate JSON Schema validation in Spring (hint: upcoming ...
๐ŸŒ
javathinking
javathinking.com โ€บ blog โ€บ json-schema-validation-in-spring-rest-apis
How to Validate JSON Schema in Spring Boot REST APIs: A Guide to Request Payload Validation โ€” javathinking.com
Spring Bootโ€™s built-in Bean Validation (JSR 380, via @Valid and annotations like @NotNull) is great for validating POJOs. However, JSON Schema shines in scenarios like: Dynamic payloads: When the request structure changes frequently (e.g., ...
๐ŸŒ
LinkedIn
linkedin.com โ€บ pulse โ€บ enforce-json-schema-validation-override-springs-automatic-andy-holst
Enforce JSON schema validation and override Spring's @RequestBody automatic deserialization in Java
August 27, 2021 - Usually when you write RESTful operations such as PUT/POST you usually use Spring's @RequestBody automatic deserialization that literally make any JSON string transformed to the defined request class object defined by the XML Schema Definition "XSD" file. Usually the Jackson "JSON for Java" is loosely configured and accept and unknown JSON properties and literally make any JSON string unmarshalled to the generated Java class object based on the defined XSD contract. However, to be able to do give better conditions for maintenance, by allowing the system to log stack of JSON validation Java method calls with help of an correlation-id, there is good 3rd party libraries that can help you to enforce validate defined JSON schema contract generated from the defined XSD contract with help of some applied JSON schema annotation.
๐ŸŒ
Google Groups
groups.google.com โ€บ g โ€บ json-schema-validator โ€บ c โ€บ jTB-9KLycPg
Integrate json-schema-validator with Spring and Jackson
I think you already mentioned about Spring integration. Never mind. ... Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message ... I just found this: https://github.com/FasterXML/jackson-databind/commit/3955abb9198e2fddad65c157610e62e301a0c4a7 ยท This is something I am looking for. If you scroll down to the page, you see a test case where the test JSON payload having duplicate keys is validated using:
๐ŸŒ
GitHub
github.com โ€บ everit-org โ€บ json-schema
GitHub - everit-org/json-schema: JSON Schema validator for java, based on the org.json API ยท GitHub
JSON Schema validator for java, based on the org.json API - everit-org/json-schema
Starred by 900 users
Forked by 279 users
Languages ย  Java
๐ŸŒ
vvauban
blog.vvauban.com โ€บ blog โ€บ spring-boot-json-schema-validation-networknt-in-action
๐Ÿš€๐Ÿงฐ SPRING BOOT JSON SCHEMA VALIDATION โ€” NETWORKNT IN ACTION
November 9, 2025 - โ–ช๏ธ Composable: evolve rules centrally by updating the schema. ๐Ÿ”ธ TRY IT ยท โ–ช๏ธ Clone โ†’ run Spring Boot โ†’ POST to /api/promo/validate with your JSON (valid/invalid) and check the responses.