-
-
Notifications
You must be signed in to change notification settings - Fork 377
Added migration page overview #1061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 28 commits
859a6f1
93bcaba
d4c8b24
8eb9721
75ee2a1
a967f66
b22b2ff
c5d352e
136ee2e
fa6391b
83536f1
dd364ba
dd1d4e7
33b69ab
9c583ce
5a4b8b3
24488f9
4e5a08d
d17e308
c5b1f87
95276a0
288e5d9
7199292
8cc36f0
45aecbc
65ba898
9891c6e
5bdfc65
3ef35de
a68d4f3
65325b8
419ea36
43f9816
bb62eaa
757f1f9
5eae100
93da171
994f731
ffcf639
b439468
85b9ceb
81ebeea
d718e51
3a5a632
33e536b
266963b
e75e0da
78d912a
5a46c9d
91c3b63
ddec102
f0fd4c2
f2aa409
6e7aa3e
7badaea
625b9f8
6649ac8
a215d13
2d34ff1
6009e19
54a0e49
aa0ca88
586e3d0
f568aee
06de9fa
bec87f1
8a56fdf
f0d7f96
e2e3fb7
8800dc0
9bbb1c2
14b40d0
d2395dd
f4e333b
f057db4
0fea2a3
94a92a8
2dd6e2d
f0a188b
10c3aa4
d6e5dcf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,5 +3,85 @@ title: Migrating from older drafts | |
| section: docs | ||
| --- | ||
|
|
||
| The release notes discuss the changes impacting users and implementers: | ||
| ### Introduction | ||
|
|
||
| Just as your schemas evolve over time, the JSON Schema specification does as well. This guide provides useful information to make upgrading your schemas across versions of the specification a breeze. | ||
kwennB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Learn how to use our migration guides and tooling ([AlterSchema](https://alterschema.sourcemeta.com/)) to bring your work with you. | ||
kwennB marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ### Keywords Overview | ||
|
|
||
| Here is a comprehensive overview to get you started. | ||
kwennB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| | All Keywords | Specification | Draft introduction | Removed | Changed | | ||
kwennB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | --------------------------- | ------------- | ------------------ | ------- | -------------------------------------------------------------------------------------------- | | ||
| | `$anchor` | Core | 2019-09 | No | Partially replaced `$id` | | ||
|
||
| | `$comment` | Core | 07 | No | | | ||
| | `$id` | Core | 06 | No | Replaced `id` | | ||
| | `$defs` | Core | 2019-09 | No | Replaced `definitions` | | ||
| | `$dynamicAnchor` | Core | 2020-12 | No | Replaced `$recursiveAnchor` | | ||
| | `$dynamicRef` | Core | 2020-12 | No | Replaced `$recursiveRef` | | ||
|
||
| | `$recursiveAnchor` | Core | 2019-09 | 2020-12 | Replaced by `$dynamicAnchor` | | ||
| | `$recursiveRef` | Core | 2019-09 | 2020-12 | Replaced by `$dynamicRef` | | ||
| | `$ref` (legacy) | Core | 03 | 2019-09 | Replaced by `$ref` | | ||
|
||
| | `$ref` | Core | 2019-09 | No | Replaced `$ref` (legacy) | | ||
|
||
| | `$schema` | Core | 03 | No | No | | ||
| | `$vocabulary` | Core | 2019-09 | No | No | | ||
| | `additionalItems` | Core | 03 | 2020-12 | Replaced by `items` | | ||
|
||
| | `allOf` | Core | 04 | No | No | | ||
| | `anyOf` | Core | 04 | No | No | | ||
| | `const` | Validation | 06 | No | No | | ||
| | `contains` | Core | 06 | No | No | | ||
|
||
| | `contentEncoding` (legacy) | Core | 01 | 04 | Replaced by `media`.`binaryEncoding` | | ||
|
||
| | `media` | Hyper-Schema | 04 | 07 | Replaced `contentEncoding` (legacy) and replaced by `contentEncoding` and `contentMediaType` | | ||
|
||
| | `contentEncoding` | Validation | 07 | No | Replaced `media`.`binaryEncoding` | | ||
|
||
| | `contentMediaType` | Validation | 07 | No | Replaced `media`.`type` | | ||
|
||
| | `contentSchema` | Validation | 2019-09 | No | No | | ||
| | `definitions` | Validation | 04 | 2019-09 | Replaced by` $defs` | | ||
| | `default` | Validation | 01 | No | No | | ||
|
||
| | `dependencies` | Validation | 03 | 2019-09 | Replaced `requires` and replaced by `dependentSchemas` and `dependentRequired` | | ||
| | `dependentRequired` | Validation | 2019-09 | No | Partially replaced `dependencies` | | ||
| | `dependentSchemas` | Core | 2019-09 | No | Partially replaced `dependencies` | | ||
| | `deprecated` | Validation | 2019-09 | No | No | | ||
| | `disallow` | Core | 01 | 04 | Replaced by `not` | | ||
| | `divisibleBy` | Validation | 02 | No | Replaced by `multipleOf` | | ||
kwennB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `else` | Core | 07 | No | No | | ||
| | `enum` | Validation | 01 | No | No | | ||
| | `examples` | Validation | 06 | No | No | | ||
|
||
| | `exclusiveMaximum` (legacy) | Validation | 03 | 06 | Replaced `maximumCanEqual` | | ||
| | `exclusiveMaximum` | Validation | 06 | No | Replaced `exclusiveMaximum` (legacy) | | ||
| | `exclusiveMinimum` (legacy) | Validation | 03 | 06 | Replaced `minimumCanEqual` | | ||
| | `exclusiveMinimum` | Validation | 06 | No | Replaced `exclusiveMinimum` (legacy) | | ||
| | `extends` | Core | 01 | 04 | Replaced by `allOf` | | ||
| | `format` | Validation | 01 | No | - | | ||
|
||
| | `id` | Core | 03 | 06 | Replaced by `$id` | | ||
| | `if` | Core | 07 | No | No | | ||
| | `items` (legacy) | Core | 01 | 2020-12 | Replaced by `prefixItems` | | ||
|
||
| | `items` | Core | 2020-12 | No | Replaced `additionalItems` and `items` (legacy) | | ||
| | `maxContains` | Validation | 2019-09 | No | No | | ||
| | `maxProperties` | Validation | 04 | No | No | | ||
| | `maximumCanEqual` | Validation | 01 | 03 | Replaced by `exclusiveMaximum` | | ||
| | `minimumCanEqual` | Validation | 01 | 03 | Replaced by `exclusiveMinimum` | | ||
| | `minContains` | Validation | 2019-09 | No | No | | ||
| | `minProperties` | Validation | 04 | No | No | | ||
| | `multipleOf` | Validation | 04 | No | Replaced `divisibleBy` | | ||
| | `not` | Core | 04 | No | No | | ||
| | `oneOf` | Core | 04 | No | No | | ||
| | `optional` | Core | 02 | No | Replaced by `required` | | ||
kwennB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `pattern` | Core | 01 | No | No | | ||
| | `patternProperties` | Core | 03 | No | No | | ||
|
||
| | `prefixItems` | Core | 2020-12 | No | Replaced `items` | | ||
| | `propertyNames` | Core | 06 | No | No | | ||
| | `readOnly` | Validation | 01 | No | No | | ||
|
||
| | `required` | Validation | 03 | No | No | | ||
| | `requires` | Core | 01 | 03 | Replaced by `dependencies` | | ||
| | `title` | Validation | 01 | No | No | | ||
|
||
| | `then` | Core | 07 | No | No | | ||
| | `type` (legacy) | Core | 01 | 04 | Replaced by `type` | | ||
|
||
| | `type` | Validation | 04 | No | Replaced `type` (legacy) | | ||
| | `unevaluatedItems` | Core | 2019-09 | No | No | | ||
| | `unevaluatedProperties` | Core | 2019-09 | No | No | | ||
| | `uniqueItems` | Validation | 02 | Yes | No | | ||
kwennB marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | `writeOnly` | Validation | 07 | No | No | | ||
|
||
|
|
||
| For a detailed read-through about all the changes see each Draft migration guide. | ||
kwennB marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.