Skip to content

Commit

Permalink
fix: additionalItems
Browse files Browse the repository at this point in the history
  • Loading branch information
mvhysko committed Jun 16, 2021
1 parent 788689a commit cf9d192
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ export function getAjv(): Ajv {
case "$ref": {
const val = dsCopy[key]
switch (val) {
case "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum":
dataSchema[key] =
"http://json-schema.org/draft-07/schema#/properties/exclusiveMaximum"
break
case "http://json-schema.org/draft-04/schema#/definitions/positiveInteger":
dataSchema[key] =
"http://json-schema.org/draft-07/schema#/definitions/nonNegativeInteger"
break
case "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0":
dataSchema[key] =
"http://json-schema.org/draft-07/schema#/definitions/nonNegativeIntegerDefault0"
break
default:
dataSchema[key] = val
dataSchema[key] = (val as string).replace("draft-04", "draft-07")
}
break
}
Expand Down

0 comments on commit cf9d192

Please sign in to comment.