Skip to content

Commit b3602a7

Browse files
committed
docs: definitions will not be replaced by $defs
related ajv-validator/ajv-cli#112
1 parent 68c59e9 commit b3602a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ console.log(migrate.getAjv().errorsText(errors))
6161
## Changes in schemas after migration
6262

6363
- `id` is replaced with `$id`
64-
- `$schema` value becomes draft-07, draft-2019-09 or draft-2020-12 meta-schema
65-
- draft-04 boolean form of `exclusiveMaximum/Minimum` is replaced with the current number form
64+
- `$schema` value becomes `draft-07`, `draft-2019-09` or `draft-2020-12` meta-schema
65+
- `draft-04` boolean form of `exclusiveMaximum/Minimum` is replaced with the current number form
6666
- `enum` with a single allowed value is replaced with `const`
6767
- Non-standard `constant` is replaced with `const`
6868
- empty schema is replaced with `true`
6969
- schema `{"not":{}}` is replaced with `false`
7070
- `draft2019` function additionally replaces:
71-
- `definitions` with `$defs`
7271
- `dependencies` with `dependentRequired` and `dependentSchemas`
7372
- `"id": "#foo"` with `"$anchor": "foo"`
7473
- `"id": "schema#foo"` with `"$id": "schema", "$anchor": "foo"`

0 commit comments

Comments
 (0)