Deployed on Heroku live. Developed mainly with
- Scalatra
- MongoDB
- Scala Version 2.12
- sbt (Developed with version 1.2.1)
- MongoDB 3.4 (Probably will work also with 3.6)
-
POST /schema/:schemaId - Upload a JSON Schema with unique schemaId
-
GET /schema/:schemaId - Download a JSON Schema with unique schemaId
-
POST /validate/:schemaId - Validate a JSON document against the JSON Schema identified by schemaId
- Clone the repo
- Have a
mongod
instance running - Then run:
$ cd json-schema-validator
$ sbt
> jetty:start
Open http://localhost:8080/ in your browser.
To enable automatic code reloading enter:
> ~;jetty:stop;jetty:start
Currently the repo is using Scalafmt with standard rules and Scalastyle for basic linting.