diff --git a/pages/draft/2020-12/release-notes.md b/pages/draft/2020-12/release-notes.md index 417794055..5c2a783c1 100644 --- a/pages/draft/2020-12/release-notes.md +++ b/pages/draft/2020-12/release-notes.md @@ -155,60 +155,64 @@ Here's how you would covert a schema using `$recursiveRef` to use `$dynamicRef`. - ```json - // tree schema, extensible - { - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://example.com/tree", - "$recursiveAnchor": true, - "type": "object", - "properties": { - "data": true, - "children": { - "type": "array", - "items": { "$recursiveRef": "#" } - } - } - } - // strict-tree schema, guards against misspelled properties - { - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "https://example.com/strict-tree", - "$recursiveAnchor": true, - "$ref": "tree", - "unevaluatedProperties": false - } - ``` - + +```jsonc +// tree schema, extensible +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "https://example.com/tree", + "$recursiveAnchor": true, + "type": "object", + "properties": { + "data": true, + "children": { + "type": "array", + "items": { "$recursiveRef": "#" } + } + } +} +// strict-tree schema, guards against misspelled properties +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "https://example.com/strict-tree", + "$recursiveAnchor": true, + "$ref": "tree", + "unevaluatedProperties": false +} +``` + - ```json - // tree schema, extensible - { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://example.com/tree", - "$dynamicAnchor": "node", - "type": "object", - "properties": { - "data": true, - "children": { - "type": "array", - "items": { "$dynamicRef": "#node" } - } - } - } - // strict-tree schema, guards against misspelled properties - { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://example.com/strict-tree", - "$dynamicAnchor": "node", - "$ref": "tree", - "unevaluatedProperties": false - } - ``` - + +```jsonc +// tree schema, extensible +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://example.com/tree", + "$dynamicAnchor": "node", + "type": "object", + "properties": { + "data": true, + "children": { + "type": "array", + "items": { "$dynamicRef": "#node"} + } + } +} +// strict-tree schema, guards against misspelled properties +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://example.com/strict-tree", + "$dynamicAnchor": "node", + "$ref": "tree", + "unevaluatedProperties": false +} +``` + + + ## contains and unevaluatedItems In the previous draft, it wasn't specified how or if the `contains` keyword affects the `unevaluatedItems` keyword. This draft specifies that any item in an