fge / json-schema-validator-demo

Webapp demonstrating JSON Schema validation hosted on Heroku

Home Page:http://json-schema-validator.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://json-schema-validator.herokuapp.com

License:GNU Lesser General Public License v3.0


Languages

Language:Java 78.3%Language:JavaScript 16.5%Language:CSS 5.2%