Skip to content

Commit e2e3fb7

Browse files
kwennBjdesrosiers
andauthored
Update pages/draft/2020-12/migration-notes.md
Co-authored-by: Jason Desrosiers <jdesrosi@gmail.com>
1 parent f0d7f96 commit e2e3fb7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pages/draft/2020-12/migration-notes.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,22 @@ For fixed-length arrays (tuples), replace `items` with `prefixItems`:
183183

184184
To validate additional items beyond `prefixItems`, `items` can still be used:
185185

186+
**Before (Draft 2019-09):**
187+
188+
```json
189+
{
190+
"type": "array",
191+
"items": [
192+
{ "type": "string" },
193+
{ "type": "number" }
194+
],
195+
"additionalItems": { "type": "boolean" }
196+
}
186197
```
198+
199+
**After (Draft 2020-12):**
200+
201+
```json
187202
{
188203
"type": "array",
189204
"prefixItems": [

0 commit comments

Comments
 (0)