diff --git a/README.md b/README.md index 4345ab1..5d723eb 100644 --- a/README.md +++ b/README.md @@ -434,15 +434,15 @@ This image can be used to run the validator without cloning this repository. Pull docker image from [quay.io](https://quay.io/repository/ebi-ait/biovalidator) ```shell -docker pull quay.io/ebi-ait/biovalidator:2.2.1 +docker pull quay.io/ebi-ait/biovalidator:2.2.2 ``` Run in server mode ```shell -docker run -p 3020:3020 -d quay.io/ebi-ait/biovalidator:2.2.1 +docker run -p 3020:3020 -d quay.io/ebi-ait/biovalidator:2.2.2 ``` Run in onetime CLI mode ```shell -docker run quay.io/ebi-ait/biovalidator:2.0.0 --schema /path/to/schema.json --data /path/to/data.json +docker run quay.io/ebi-ait/biovalidator:2.2.2 --schema /path/to/schema.json --data /path/to/data.json ``` ## Development diff --git a/package.json b/package.json index 4c5daba..2d2d226 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "biovalidator", - "version": "2.2.1", + "version": "2.2.2", "description": "A nodejs JSON schema validator, extended from Ajv to include ontology validation.", "main": "src/biovalidator.js", "bin": { diff --git a/src/core/server.js b/src/core/server.js index 83ffbee..1ee90a3 100644 --- a/src/core/server.js +++ b/src/core/server.js @@ -44,7 +44,7 @@ class BioValidatorServer { this.router = express.Router(); this.router.use(express.static('src/views')); - this.app.use(bodyParser.json()); + this.app.use(express.json({limit:'1mb'})); this.app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*");