Skip to content

Commit abefe4b

Browse files
authored
Merge pull request #22 from json-structure/fix/issue-21-ref-consistency
Fix inconsistent usage in examples (fixes #21)
2 parents 4b57479 + 903969c commit abefe4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

draft-vasters-json-structure-core.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ Example:
577577
~~~ json
578578
{
579579
"type": "set",
580-
"items": { "$ref": "#/Namespace/TypeName" }
580+
"items": { "type": { "$ref": "#/Namespace/TypeName" } }
581581
}
582582
~~~
583583

@@ -603,7 +603,7 @@ Example:
603603
~~~ json
604604
{
605605
"type": "map",
606-
"values": { "$ref": "#/StringType" }
606+
"values": { "type": { "$ref": "#/StringType" } }
607607
}
608608
~~~
609609

@@ -735,8 +735,8 @@ Example:
735735
"$extends": "#/definitions/Address",
736736
"selector": "addressType",
737737
"choices": {
738-
"StreetAddress": { "$ref": "#/definitions/StreetAddress" },
739-
"PostOfficeBoxAddress": { "$ref": "#/definitions/PostOfficeBoxAddress" }
738+
"StreetAddress": { "type": { "$ref": "#/definitions/StreetAddress" } },
739+
"PostOfficeBoxAddress": { "type": { "$ref": "#/definitions/PostOfficeBoxAddress" } }
740740
},
741741
"definitions" : {
742742
"Address": {

0 commit comments

Comments
 (0)