Skip to content

Commit

Permalink
resolved code formatting issue #371 (#385)
Browse files Browse the repository at this point in the history
* 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 78e51da.

* Revert "changes"

This reverts commit 8255639.

* reverting

* Revert "reverting"

This reverts commit 55dd827.

* Revert "Merge branch 'main' into main"

This reverts commit ac7f824, reversing
changes made to 78e51da.

* changes

* Revert "changes"

This reverts commit d0d5244.

* Reapply "Merge branch 'main' into main"

This reverts commit c114d89.

* discard the changes of index.page.tsx file

* discard the changes in index.page.tsx file
  • Loading branch information
Adity20 authored Mar 5, 2024
1 parent d8a3505 commit 316d2a6
Showing 1 changed file with 54 additions and 50 deletions.
104 changes: 54 additions & 50 deletions pages/draft/2020-12/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,60 +155,64 @@ Here's how you would covert a schema using `$recursiveRef` to use `$dynamicRef`.
</tr>
<tr>
<td>
```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
}
```
</td>

```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
}
```
</td>
<td>
```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
}
```
</td>

```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
}
```
</td>
</tr>
</table>



## 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
Expand Down

0 comments on commit 316d2a6

Please sign in to comment.