@apigames/json-schema
Advanced tools
Comparing version 22.1.0-dev.6 to 22.1.0-dev.7
@@ -6,2 +6,3 @@ import { ValidationError, Validator } from 'jsonschema'; | ||
private _validationErrors; | ||
private CallSchemaDefinitionsSetupSchemaDependencies; | ||
private SetupSchemaDependencies; | ||
@@ -8,0 +9,0 @@ private SetupSchema; |
@@ -10,6 +10,3 @@ "use strict"; | ||
this.SetupSchemaDependencies = (schemaDefinition, context) => { | ||
if (schemaDefinition.SetupSchemaDependencies) { | ||
const setupSchemaDependencyFunction = this.SetupSchemaDependencies.bind(this); | ||
schemaDefinition.SetupSchemaDependencies(setupSchemaDependencyFunction, context); | ||
} | ||
this.CallSchemaDefinitionsSetupSchemaDependencies(schemaDefinition, context); | ||
const _schemaDefinition = schemaDefinition.SchemaDefinition(context); | ||
@@ -19,6 +16,3 @@ this.validator.addSchema(_schemaDefinition, schemaDefinition.SchemaName(context)); | ||
this.SetupSchema = (schemaDefinition, context) => { | ||
if (schemaDefinition.SetupSchemaDependencies) { | ||
const setupSchemaDependencyFunction = this.SetupSchemaDependencies.bind(this); | ||
schemaDefinition.SetupSchemaDependencies(setupSchemaDependencyFunction, context); | ||
} | ||
this.CallSchemaDefinitionsSetupSchemaDependencies(schemaDefinition, context); | ||
}; | ||
@@ -51,2 +45,8 @@ this.SetupValidator = () => { | ||
} | ||
CallSchemaDefinitionsSetupSchemaDependencies(schemaDefinition, context) { | ||
if ((0, json_1.isDefined)(schemaDefinition.SetupSchemaDependencies)) { | ||
const setupSchemaDependencyFunction = this.SetupSchemaDependencies.bind(this); | ||
schemaDefinition.SetupSchemaDependencies(setupSchemaDependencyFunction, context); | ||
} | ||
} | ||
get validationErrors() { | ||
@@ -53,0 +53,0 @@ return this._validationErrors; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "22.1.0-dev.6", | ||
"version": "22.1.0-dev.7", | ||
"main": "lib/index.js", | ||
@@ -27,3 +27,3 @@ "types": "lib/index.d.ts", | ||
"dependencies": { | ||
"@apigames/json": "22.1.0-dev.7", | ||
"@apigames/json": "22.1.0-dev.8", | ||
"deep-equal": "2.0.5", | ||
@@ -30,0 +30,0 @@ "es6-promise": "4.2.8", |
26445
360
+ Added@apigames/json@22.1.0-dev.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.2(transitive)
- Removed@apigames/json@22.1.0-dev.7(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
Updated@apigames/json@22.1.0-dev.8