@apigames/json-schema
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { Schema, ValidatorResult } from 'jsonschema'; | ||
import { JsonElementType } from '@apigames/json'; | ||
export declare type setupSchemaDependenciesFunction = (schemaDefinition: IJsonSchemaDefinition) => void; | ||
@@ -8,3 +7,3 @@ export interface IJsonSchemaDefinition { | ||
schemaDefinition(): Schema; | ||
postSchemaValidation?(payloadDocument: JsonElementType, validationResult: ValidatorResult): void; | ||
postSchemaValidation?(payloadDocument: any, validationResult: ValidatorResult): void; | ||
} |
import { ValidationError, Validator } from 'jsonschema'; | ||
import { JsonElementType } from '@apigames/json'; | ||
import type { IJsonSchemaDefinition } from './json.schema.definition'; | ||
@@ -13,3 +12,3 @@ export default class JsonSchemaValidator { | ||
get validator(): Validator; | ||
validate: (payloadDocument: JsonElementType, schemaDefinition: IJsonSchemaDefinition) => boolean; | ||
validate: (payloadDocument: any, schemaDefinition: IJsonSchemaDefinition) => boolean; | ||
} |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "lib/index.js", | ||
@@ -16,3 +16,3 @@ "types": "lib/index.d.ts", | ||
"dependencies": { | ||
"@apigames/json": "^1.0.28", | ||
"@apigames/json": "^1.0.32", | ||
"deep-equal": "^1.0.1", | ||
@@ -24,4 +24,4 @@ "es6-promise": "^4.2.8", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.0", | ||
"@types/node": "^14.6.4", | ||
"@types/jest": "^26.0.14", | ||
"@types/node": "^14.11.1", | ||
"@typescript-eslint/eslint-plugin": "^3.10.1", | ||
@@ -35,4 +35,4 @@ "@typescript-eslint/parser": "^3.10.1", | ||
"jest": "^26.4.2", | ||
"ts-jest": "^26.3.0", | ||
"typescript": "^4.0.2" | ||
"ts-jest": "^26.4.0", | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -39,0 +39,0 @@ "eslintConfig": {}, |
22692
329
+ Addedis-boolean-object@1.2.1(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
- Removedis-boolean-object@1.2.2(transitive)
- Removedobject-inspect@1.13.4(transitive)
- Removedpossible-typed-array-names@1.1.0(transitive)
Updated@apigames/json@^1.0.32