json-schema-migrate
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -83,5 +83,2 @@ "use strict"; | ||
} | ||
case "definitions": | ||
dataSchema[version === "draft7" ? "definitions" : "$defs"] = dsCopy.definitions; | ||
break; | ||
case "constant": | ||
@@ -88,0 +85,0 @@ dataSchema.const = dsCopy.constant; |
{ | ||
"name": "json-schema-migrate", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Migrate JSON-Schema to draft-06", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
{ | ||
"$id": "my-schema", | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$defs": { | ||
"definitions": { | ||
"str": { | ||
@@ -6,0 +6,0 @@ "$anchor": "str", |
@@ -90,5 +90,2 @@ import Ajv, {SchemaObject, AnySchemaObject, AnySchema} from "ajv/dist/2019" | ||
} | ||
case "definitions": | ||
dataSchema[version === "draft7" ? "definitions" : "$defs"] = dsCopy.definitions | ||
break | ||
case "constant": | ||
@@ -95,0 +92,0 @@ dataSchema.const = dsCopy.constant |
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
27787
533