Skip to content

Commit

Permalink
feat: increase input json payload size from 100k to 1m
Browse files Browse the repository at this point in the history
theisuru committed May 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent e7bae99 commit d8fd805
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
2 changes: 1 addition & 1 deletion src/core/server.js
Original file line number Diff line number Diff line change
@@ -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", "*");

0 comments on commit d8fd805

Please sign in to comment.