jsonpolice
Advanced tools
Comparing version 3.5.0 to 3.5.1
import { SchemaOptions } from './global'; | ||
import { Schema } from './schema'; | ||
import './schema_array'; | ||
@@ -10,6 +11,6 @@ import './schema_boolean'; | ||
export { Schema } from './schema'; | ||
export declare function create(dataOrUri: any, opts?: SchemaOptions): Promise<any>; | ||
export declare function create(dataOrUri: any, opts?: SchemaOptions): Promise<Schema>; | ||
export declare function flatten(dataOrUri: any, opts?: SchemaOptions): Promise<any>; | ||
export declare function getVersion(dataOrUri: any, opts?: SchemaOptions): Promise<any>; | ||
export declare function addVersion(dataOrUri: any, opts?: SchemaOptions): Promise<any>; | ||
export declare function fireValidationError(dataScope: string, schemaScope: string, type: string, info?: any): void; | ||
export declare function fireValidationError(dataScope: string, schemaScope: string, type: string, info?: any): never; |
@@ -32,3 +32,3 @@ "use strict"; | ||
return vers.get(data.$schema, opts).then(function (schemaVersion) { | ||
var _schemaVersion = schema_1.Schema.create(schemaVersion, _.defaults(opts, { scope: refs.scope(schemaVersion) })); | ||
let _schemaVersion = schema_1.Schema.create(schemaVersion, _.defaults(opts, { scope: refs.scope(schemaVersion) })); | ||
_schemaVersion.validate(data); | ||
@@ -35,0 +35,0 @@ return schema_1.Schema.create(data, opts); |
{ | ||
"name": "jsonpolice", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "JSON Schema parser and validator", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
98732
1148