Skip to content

haridas/json-schema-validator-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What this is

This is a Heroku-based Java webapp which demonstrates usages of the following packages:

This application is available here.

Demo pages

All processors written for this site are gathered together in a single package: json-schema-processor-examples. Right now, the following pages exist:

  • full validation (schema + data) (link);
  • syntax validation (link);
  • generation of a JSON Schema from a Java source file (link);
  • generation of a Java source file form a JSON Schema (link);
  • JSON Patch (link);
  • conversion of an Avro schema to a JSON Schema (link);

Running the application locally

This application uses an embedded Jetty server and is self contained. You need to have a JDK (at least 1.6) and maven installed (3.0.x preferably, but 2.x will also work).

Into the main directory, type:

mvn clean install

This will download all necessary artifacts and prepare everything. Then run the application with:

java -cp target/classes:target/dependency/* com.github.fge.jsonschema.WebApp

The application will listen on the loopback interface, and on port 8080 by default; in order to access it, you will therefore type the following as a URL in your browser:

http://localhost:8080

About

Webapp demonstrating JSON Schema validation hosted on Heroku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 84.5%
  • JavaScript 11.8%
  • CSS 3.7%