@xyo-network/payload-validator
Advanced tools
Comparing version 2.47.6 to 2.47.7
@@ -14,3 +14,3 @@ "use strict"; | ||
if (!this._schemaValidator) { | ||
console.warn('No schema name validator set'); | ||
console.warn(`No schema name validator set [${this.payload.schema}]`); | ||
} | ||
@@ -17,0 +17,0 @@ return this._schemaValidator; |
@@ -27,3 +27,3 @@ { | ||
"character": 2, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L16" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L16" | ||
} | ||
@@ -214,3 +214,3 @@ ], | ||
"character": 10, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L14" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L14" | ||
} | ||
@@ -262,3 +262,3 @@ ], | ||
"character": 12, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L12" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L12" | ||
} | ||
@@ -339,3 +339,3 @@ ], | ||
"character": 19, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L11" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L11" | ||
} | ||
@@ -370,3 +370,3 @@ ], | ||
"character": 6, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L21" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L21" | ||
} | ||
@@ -436,5 +436,3 @@ ], | ||
"kindString": "Method", | ||
"flags": { | ||
"isPublic": true | ||
}, | ||
"flags": {}, | ||
"sources": [ | ||
@@ -444,4 +442,4 @@ { | ||
"line": 33, | ||
"character": 9, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L33" | ||
"character": 2, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L33" | ||
} | ||
@@ -473,5 +471,3 @@ ], | ||
"kindString": "Method", | ||
"flags": { | ||
"isPublic": true | ||
}, | ||
"flags": {}, | ||
"sources": [ | ||
@@ -481,4 +477,4 @@ { | ||
"line": 43, | ||
"character": 9, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L43" | ||
"character": 2, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L43" | ||
} | ||
@@ -527,3 +523,2 @@ ], | ||
"flags": { | ||
"isPublic": true, | ||
"isStatic": true | ||
@@ -535,4 +530,4 @@ }, | ||
"line": 29, | ||
"character": 16, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L29" | ||
"character": 9, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L29" | ||
} | ||
@@ -615,3 +610,3 @@ ], | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L10" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L10" | ||
} | ||
@@ -674,3 +669,3 @@ ], | ||
"character": 12, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4" | ||
} | ||
@@ -698,3 +693,3 @@ ], | ||
"character": 2, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L5" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L5" | ||
} | ||
@@ -735,3 +730,3 @@ ], | ||
"character": 27, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L4" | ||
} | ||
@@ -753,3 +748,3 @@ ] | ||
"character": 12, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8" | ||
} | ||
@@ -770,3 +765,3 @@ ], | ||
"character": 34, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/Validator.ts#L8" | ||
} | ||
@@ -825,5 +820,5 @@ ], | ||
"character": 0, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/c4e904b8751/packages/protocol/packages/payload/packages/validator/src/index.ts#L1" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/0f3587761fe/packages/protocol/packages/payload/packages/validator/src/index.ts#L1" | ||
} | ||
] | ||
} |
@@ -13,3 +13,3 @@ import { XyoValidatorBase } from '@xyo-network/core'; | ||
if (!this._schemaValidator) { | ||
console.warn('No schema name validator set'); | ||
console.warn(`No schema name validator set [${this.payload.schema}]`); | ||
} | ||
@@ -16,0 +16,0 @@ return this._schemaValidator; |
@@ -13,4 +13,4 @@ { | ||
"dependencies": { | ||
"@xyo-network/core": "^2.47.6", | ||
"@xyo-network/payload-model": "^2.47.6" | ||
"@xyo-network/core": "^2.47.7", | ||
"@xyo-network/payload-model": "^2.47.7" | ||
}, | ||
@@ -55,3 +55,3 @@ "devDependencies": { | ||
"types": "dist/types/index.d.ts", | ||
"version": "2.47.6" | ||
"version": "2.47.7" | ||
} |
@@ -24,3 +24,3 @@ import { Validator, XyoValidatorBase } from '@xyo-network/core' | ||
if (!this._schemaValidator) { | ||
console.warn('No schema name validator set') | ||
console.warn(`No schema name validator set [${this.payload.schema}]`) | ||
} | ||
@@ -30,7 +30,7 @@ return this._schemaValidator | ||
public static setSchemaNameValidatorFactory(factory: AllValidatorFactory | null) { | ||
static setSchemaNameValidatorFactory(factory: AllValidatorFactory | null) { | ||
this.schemaNameValidatorFactory = factory | ||
} | ||
public schemaName() { | ||
schemaName(): Error[] { | ||
const errors: Error[] = [] | ||
@@ -45,3 +45,3 @@ if (this.obj.schema === undefined) { | ||
public validate() { | ||
validate() { | ||
const errors: Error[] = [] | ||
@@ -48,0 +48,0 @@ errors.push(...this.schemaName()) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37954
987