License : MIT

Current version: 1.0
Release date: 2014-06-29

Maven dependency:

<dependency>
<groupId>org.hawksoft</groupId>
<artifactId>json-schema</artifactId>
<version>1.0</version>
</dependency>

json-schema allows you to validate a JSON data document against a given JSON schema.

The JSON schema document follows the exact same structure as the data document it's validating. However, the schema attribute values are actually validation rules.

For example, the following JSON data attribute:
{
...
"fruit" : "banana",
...
}

could be validated using the following schema attribute (rules):

{
...
"fruit" : "type=enum;values=apple,orange,banana,pear",
...
}

Whereas { "fruit" : "banana" } would pass validation, { "fruit" : "strawberry" } would not, since strawberry is not one of the allowed enumeration values for 'fruit'.

Project Activity

See All Activity >

Follow JSON Schema Validation

JSON Schema Validation Web Site

nel_h2
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free

Additional Project Details

Registered

2014-01-14