Thursday 8 April 2021

JsonSchema tutorial

In coming posts, you are going to learn

a.   Generate json schema from a java class

b.   Generate json schema from json string

c.    Validate json document against json schema

d. Extract all messages from processing report in json-schema validator

 

I am going to use following dependency for this tutorial.

<dependencies>
  <dependency>
    <groupId>com.fasterxml.jackson.module</groupId>
    <artifactId>jackson-module-jsonSchema</artifactId>
    <version>2.12.2</version>
  </dependency>

  <dependency>
    <groupId>com.github.java-json-tools</groupId>
    <artifactId>json-schema-validator</artifactId>
    <version>2.2.14</version>
  </dependency>

</dependencies>

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment