🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-schema-library

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-library - npm Package Compare versions

Comparing version

to
2.3.1

8

lib/getTemplate.js
/* eslint quote-props: 0 */
const resolveOneOfFuzzy = require("./resolveOneOf.fuzzy");
const getTypeOf = require("./getTypeOf");

@@ -34,2 +35,9 @@

}
if (data != null && getTypeOf(data) !== schema.type) {
// reset invalid type
console.error("Schema does not match data", data, "schema:", schema);
data = null;
}
// eslint-disable-next-line no-use-before-define

@@ -36,0 +44,0 @@ if (TYPE[schema.type] == null) {

4

package.json
{
"name": "json-schema-library",
"version": "2.3.0",
"version": "2.3.1",
"description": "Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation",

@@ -37,2 +37,2 @@ "main": "index.js",

}
}
}