From 316d2a6e6b65dbd6a55bc2a89f946b5b425c076d Mon Sep 17 00:00:00 2001
From: Aditya Sharma <119804372+Adity20@users.noreply.github.com>
Date: Wed, 6 Mar 2024 05:05:05 +0530
Subject: [PATCH] resolved code formatting issue #371 (#385)
* resolved code formatting issue #371
* resolved code formatting issue #371
* added the proper formatting
* added proper headings
* changed the indentation of json
* changed the format to jsonc
* changed some indetation
* overflow in blog space handled
* handled overflow
* changes
* Revert "overflow in blog space handled"
This reverts commit 78e51da1a7747c459391f95cad088ff9992d6ea9.
* Revert "changes"
This reverts commit 82556394aadd0c7901eb70ee0750c0823007886e.
* reverting
* Revert "reverting"
This reverts commit 55dd8271ece204048648b7e8ba827d7454528e21.
* Revert "Merge branch 'main' into main"
This reverts commit ac7f824f212c4531c2b6f74e09bbe1a8991f540b, reversing
changes made to 78e51da1a7747c459391f95cad088ff9992d6ea9.
* changes
* Revert "changes"
This reverts commit d0d52442d4ae0c6d1eacca3baf7f50564caeac13.
* Reapply "Merge branch 'main' into main"
This reverts commit c114d8925e04b85d578e01e4a7138eb65102a9b9.
* discard the changes of index.page.tsx file
* discard the changes in index.page.tsx file
---
pages/draft/2020-12/release-notes.md | 104 ++++++++++++++-------------
1 file changed, 54 insertions(+), 50 deletions(-)
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