@hyperjump/json-schema
Advanced tools
Comparing version 0.8.2 to 0.9.0
@@ -10,3 +10,3 @@ const { Core, Schema } = require("@hyperjump/json-schema-core"); | ||
Schema.setConfig(schemaVersion, "jsonReference", true); | ||
Schema.setConfig(schemaVersion, "jrefToken", "$ref"); | ||
Schema.setConfig(schemaVersion, "idToken", "id"); | ||
@@ -52,3 +52,3 @@ Schema.setConfig(schemaVersion, "anchorToken", "id"); | ||
Schema.setConfig(hyperSchemaVersion, "jsonReference", true); | ||
Schema.setConfig(hyperSchemaVersion, "jrefToken", "$ref"); | ||
Schema.setConfig(hyperSchemaVersion, "idToken", "id"); | ||
@@ -55,0 +55,0 @@ Schema.setConfig(hyperSchemaVersion, "anchorToken", "id"); |
@@ -8,3 +8,3 @@ const { Core, Schema } = require("@hyperjump/json-schema-core"); | ||
Schema.setConfig(schemaVersion, "jsonReference", true); | ||
Schema.setConfig(schemaVersion, "jrefToken", "$ref"); | ||
Schema.setConfig(schemaVersion, "idToken", "$id"); | ||
@@ -11,0 +11,0 @@ Schema.setConfig(schemaVersion, "anchorToken", "$id"); |
@@ -8,3 +8,3 @@ const { Core, Schema } = require("@hyperjump/json-schema-core"); | ||
Schema.setConfig(schemaVersion, "jsonReference", true); | ||
Schema.setConfig(schemaVersion, "jrefToken", "$ref"); | ||
Schema.setConfig(schemaVersion, "idToken", "$id"); | ||
@@ -11,0 +11,0 @@ Schema.setConfig(schemaVersion, "anchorToken", "$id"); |
@@ -14,6 +14,8 @@ const { Core, Schema } = require("@hyperjump/json-schema-core"); | ||
Schema.setConfig(schemaVersion, "keywordReference", true); | ||
Schema.setConfig(schemaVersion, "keywordRecursiveReference", true); | ||
Schema.setConfig(schemaVersion, "idToken", "$id"); | ||
Schema.setConfig(schemaVersion, "anchorToken", "$anchor"); | ||
Schema.setConfig(schemaVersion, "jsrefToken", "$ref"); | ||
Schema.setConfig(schemaVersion, "dynamicJsrefToken", "$recursiveRef"); | ||
Schema.setConfig(schemaVersion, "recursiveAnchorToken", "$recursiveAnchor"); | ||
Schema.setConfig(schemaVersion, "commentToken", "$comment"); | ||
Schema.setConfig(schemaVersion, "vocabulary", true); | ||
@@ -27,3 +29,2 @@ Schema.setConfig(schemaVersion, "mandatoryVocabularies", ["https://json-schema.org/draft/2019-09/vocab/core"]); | ||
"validate": keywords.validate, | ||
"$comment": keywords.metaData, | ||
"$defs": keywords.definitions, | ||
@@ -30,0 +31,0 @@ "$recursiveRef": keywords.$recursiveRef, |
@@ -8,6 +8,8 @@ const { Core, Schema, Instance } = require("@hyperjump/json-schema-core"); | ||
const minContainsSchema = await Schema.step("minContains", parentSchema); | ||
const minContains = Schema.value(minContainsSchema) || 1; | ||
const minContainsValue = Schema.value(minContainsSchema); | ||
const minContains = typeof minContainsValue === "undefined" ? 1 : minContainsValue; | ||
const maxContainsSchema = await Schema.step("maxContains", parentSchema); | ||
const maxContains = Schema.value(maxContainsSchema) || Number.MAX_SAFE_INTEGER; | ||
const maxContainsValue = Schema.value(maxContainsSchema); | ||
const maxContains = typeof maxContainsValue === "undefined" ? Number.MAX_SAFE_INTEGER : maxContainsValue; | ||
@@ -14,0 +16,0 @@ return { contains, minContains, maxContains }; |
{ | ||
"name": "@hyperjump/json-schema", | ||
"version": "0.8.2", | ||
"version": "0.9.0", | ||
"description": "A JSON Schema Validator", | ||
@@ -39,9 +39,9 @@ "main": "lib/index.js", | ||
"mocha": "^5.2.0", | ||
"rollup": "^2.9.1", | ||
"rollup": "^2.12.1", | ||
"rollup-plugin-terser": "^5.3.0" | ||
}, | ||
"dependencies": { | ||
"@hyperjump/json-schema-core": "^0.11.0", | ||
"@hyperjump/json-schema-core": "^0.12.0", | ||
"fastest-stable-stringify": "^2.0.2" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
4093613
25113
97
+ Added@hyperjump/json-schema-core@0.12.0(transitive)
+ Addedurl-resolve-browser@1.2.0(transitive)
- Removed@hyperjump/json-schema-core@0.11.0(transitive)