Skip to content

Commit

Permalink
do not change definitions to defs, issue ajv-validator/ajv-cli#112
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Feb 15, 2021
1 parent 397726f commit 81d8954
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion spec/fixtures/expected-schema-from-draft-04-to-2019.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$id": "my-schema",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$defs": {
"definitions": {
"str": {
"$anchor": "str",
"type": "string"
Expand Down
3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ export function getAjv(): Ajv {
: $schema
break
}
case "definitions":
dataSchema[version === "draft7" ? "definitions" : "$defs"] = dsCopy.definitions
break
case "constant":
dataSchema.const = dsCopy.constant
break
Expand Down

0 comments on commit 81d8954

Please sign in to comment.