Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit a30bf13

Browse files
authored
Fix using type rather than $ref in 2020-12 release notes
Some schemas in the 2020-12 release notes used `type` rather than `$ref` where the value was clearly a relative reference URI. https://groups.google.com/g/json-schema/c/v1fwFPA2PFU?pli=1
1 parent ecab9ed commit a30bf13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

draft/2020-12/release-notes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ external references that we want to bundle.
350350
"properties": {
351351
"address": { "type": "string" },
352352
"city": { "type": "string" },
353-
"postalCode": { "type": "/schema/common#/$defs/usaPostalCode" },
354-
"state": { "type": "/$defs/states" }
353+
"postalCode": { "$ref": "/schema/common#/$defs/usaPostalCode" },
354+
"state": { "$ref": "/$defs/states" }
355355
},
356356

357357
"$defs": {
@@ -407,8 +407,8 @@ embedded schemas using `$defs`. Here's what the bundled schema would look like.
407407
"properties": {
408408
"address": { "type": "string" },
409409
"city": { "type": "string" },
410-
"postalCode": { "type": "/schema/common#/$defs/usaPostalCode" },
411-
"state": { "type": "#/$defs/states" }
410+
"postalCode": { "$ref": "/schema/common#/$defs/usaPostalCode" },
411+
"state": { "$ref": "#/$defs/states" }
412412
},
413413

414414
"$defs": {

0 commit comments

Comments
 (0)