Skip to content

Project demonstration the use of Json schema. Using jsonschema2pojo to generate java objects from a jsonschema, then use the objects to marshall java objects from json, and validate the object and restrictions.

rizvn/Json-Schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project demonstrates the use of json-schema with java. This approach can be used to implement contract first design. Where the interface is defined first.

  • jsonschema2pojo used oto generate java objects from a json-schema, also generating jsr303 annotations for validation
  • Jackson used to marshall java objects from json,
  • Hibernate Validator used to validate objects marshalled

To compile:

mvn clean compile

To run tests:

mvn test

About

Project demonstration the use of Json schema. Using jsonschema2pojo to generate java objects from a jsonschema, then use the objects to marshall java objects from json, and validate the object and restrictions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published