diff --git a/maas-schemas/package.json b/maas-schemas/package.json index cbde6f11f..9a5ad5969 100644 --- a/maas-schemas/package.json +++ b/maas-schemas/package.json @@ -1,6 +1,6 @@ { "name": "maas-schemas", - "version": "20.4.0", + "version": "20.5.0", "description": "Schemas for MaaS infrastructure", "main": "index.js", "engine": { @@ -57,7 +57,7 @@ "json-schema": "^0.3.0", "maasglobal-json-schema-validator": "^0.0.8", "maasglobal-prelude-ts": "^0.0.13", - "maasglobal-schema-generator-ajv": "^0.0.4", + "maasglobal-schema-generator-ajv": "^0.0.5", "maasglobal-schema-generator-io-ts": "^0.0.6", "markdown-folder-to-html": "^2.3.0", "prettier": "^2.8.1", diff --git a/maas-schemas/src/ajv/index.ts b/maas-schemas/src/ajv/index.ts index 9e7642b32..889266ed4 100644 --- a/maas-schemas/src/ajv/index.ts +++ b/maas-schemas/src/ajv/index.ts @@ -1,5 +1,7 @@ import * as mjsv from 'maasglobal-json-schema-validator'; +export { ValidationError } from 'maasglobal-json-schema-validator'; + let validator: mjsv.Validator | undefined; export function init(): mjsv.Validator { diff --git a/maas-schemas/yarn.lock b/maas-schemas/yarn.lock index 781692cfc..6c71cf46a 100644 --- a/maas-schemas/yarn.lock +++ b/maas-schemas/yarn.lock @@ -5147,10 +5147,10 @@ maasglobal-prelude-ts@^0.0.13: resolved "https://registry.yarnpkg.com/maasglobal-prelude-ts/-/maasglobal-prelude-ts-0.0.13.tgz#c720a1d4c45c91764b80564987f24b60654fc3e9" integrity sha512-aFnCiyP0Q5my3Wwp0+T/e9fPGJgilvamfR8KdetP5XXB3Mjq4nyj1lbBx+4NcKTdUtk8FOxhfih83Rb3gOztzQ== -maasglobal-schema-generator-ajv@^0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/maasglobal-schema-generator-ajv/-/maasglobal-schema-generator-ajv-0.0.4.tgz#a14ee3101d129a2720709776d7ce3a5527a14a4c" - integrity sha512-TWcr4kQqcMbHS6ydzhjPppmECu0JQNXnnfhhhT+R2WfY1A9dngkALqGF/0IAY+FAS0aWTpA6zHpVv+cOyemcZQ== +maasglobal-schema-generator-ajv@^0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/maasglobal-schema-generator-ajv/-/maasglobal-schema-generator-ajv-0.0.5.tgz#d981a4b92d766ee907139fb567ac4fe8cf88e6ef" + integrity sha512-07dKubzOLN3KwQQF4ORpNxxRsSRbqIcxS7e6U00o2TcUVyxPzLjEGtBoeMQazIvePVVPuzTNQPB3tV12oal3PA== dependencies: maasglobal-json-schema-validator "^0.0.6" maasglobal-schema-package "^0.0.1"