Skip to content

Commit dc1d0a9

Browse files
committed
upgrade ajv to 7.1.0, json-migrate-schema to 1.1.0 - to stop changing definitions to $defs when migrating to draft-2019-09, fixes #112
1 parent be01c4c commit dc1d0a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"url": "https://github.com/ajv-validator/ajv-cli"
3535
},
3636
"dependencies": {
37-
"ajv": "^7.0.0",
37+
"ajv": "^7.1.0",
3838
"fast-json-patch": "^2.0.0",
3939
"glob": "^7.1.0",
4040
"js-yaml": "^3.14.0",
41-
"json-schema-migrate": "^1.0.0",
41+
"json-schema-migrate": "^1.1.0",
4242
"json5": "^2.1.3",
4343
"minimist": "^1.2.0"
4444
},

test/migrate/expected_migrated_schema_2019.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$id": "my-schema",
33
"$schema": "https://json-schema.org/draft/2019-09/schema",
4-
"$defs": {
4+
"definitions": {
55
"str": {
66
"$anchor": "str",
77
"type": "string"

0 commit comments

Comments
 (0)