Unverified Commit 786d7973 authored by Isuru Liyanage's avatar Isuru Liyanage Committed by GitHub
Browse files

Merge pull request #23 from elixir-europe/dev

Preparing for the release v1.9.1
parents e616e88c 73f7467a
...@@ -40,4 +40,4 @@ ...@@ -40,4 +40,4 @@
} }
}, },
"type": "object" "type": "object"
} }
\ No newline at end of file
{ {
"name": "biovalidator", "name": "biovalidator",
"version": "1.9.0", "version": "1.9.1",
"description": "A nodejs JSON schema validator service.", "description": "A nodejs JSON schema validator service. Extended from Ajv to include ontology validation.",
"main": "src/server.js", "main": "src/server.js",
"repository": "https://github.com/elixir-europe/biovalidator.git", "repository": "https://github.com/elixir-europe/biovalidator.git",
"scripts": { "scripts": {
......
...@@ -2,12 +2,14 @@ const logger = require("./winston"); ...@@ -2,12 +2,14 @@ const logger = require("./winston");
const ValidationError = require("./model/validation-error"); const ValidationError = require("./model/validation-error");
const AppError = require("./model/application-error"); const AppError = require("./model/application-error");
const BioValidator = require("./bio-validator"); const BioValidator = require("./bio-validator");
const GraphRestriction = require("./keywords/graph_restriction");
const { isChildTermOf, isValidTerm, isValidTaxonomy } = require("./keywords"); const { isChildTermOf, isValidTerm, isValidTaxonomy } = require("./keywords");
const validator = new BioValidator([ const validator = new BioValidator([
new isChildTermOf(null, "https://www.ebi.ac.uk/ols/api/search?q="), 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 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) { function convertToValidationErrors(ajvErrorObjects) {
......
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment