Skip to content

Commit

Permalink
Merge pull request #23 from elixir-europe/dev
Browse files Browse the repository at this point in the history
Preparing for the release v1.9.1
  • Loading branch information
theisuru authored Oct 28, 2021
2 parents e616e88 + 73f7467 commit 786d797
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/schemas/graphRestriction-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"type": "object"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "biovalidator",
"version": "1.9.0",
"description": "A nodejs JSON schema validator service.",
"version": "1.9.1",
"description": "A nodejs JSON schema validator service. Extended from Ajv to include ontology validation.",
"main": "src/server.js",
"repository": "https://github.com/elixir-europe/biovalidator.git",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ const logger = require("./winston");
const ValidationError = require("./model/validation-error");
const AppError = require("./model/application-error");
const BioValidator = require("./bio-validator");
const GraphRestriction = require("./keywords/graph_restriction");
const { isChildTermOf, isValidTerm, isValidTaxonomy } = require("./keywords");

const validator = new BioValidator([
new isChildTermOf(null, "https://www.ebi.ac.uk/ols/api/search?q="),
new isValidTerm(null, "https://www.ebi.ac.uk/ols/api/search?q="),
new isValidTaxonomy(null)
new isValidTaxonomy(null),
new GraphRestriction(null, "https://www.ebi.ac.uk/ols/api")
]);

function convertToValidationErrors(ajvErrorObjects) {
Expand Down
Empty file modified validator-cli.js
100644 → 100755
Empty file.

0 comments on commit 786d797

Please sign in to comment.