File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,24 +22,24 @@ You've got a JSON Schema with `$ref` pointers to other files and/or URLs. Maybe
2222
2323``` javascript
2424{
25- " definitions" : {
26- " person" : {
27- // references an external file
28- " $ref" : " schemas/people/Bruce-Wayne.json"
29- },
30- " place" : {
31- // references a sub-schema in an external file
32- " $ref" : " schemas/places.yaml#/definitions/Gotham-City"
33- },
34- " thing" : {
35- // references a URL
36- " $ref" : " http://wayne-enterprises.com/things/batmobile"
37- },
38- " color" : {
39- // references a value in an external file via an internal reference
40- " $ref" : " #/definitions/thing/properties/colors/black-as-the-night"
41- }
25+ " definitions" : {
26+ " person" : {
27+ // references an external file
28+ " $ref" : " schemas/people/Bruce-Wayne.json"
29+ },
30+ " place" : {
31+ // references a sub-schema in an external file
32+ " $ref" : " schemas/places.yaml#/definitions/Gotham-City"
33+ },
34+ " thing" : {
35+ // references a URL
36+ " $ref" : " http://wayne-enterprises.com/things/batmobile"
37+ },
38+ " color" : {
39+ // references a value in an external file via an internal reference
40+ " $ref" : " #/definitions/thing/properties/colors/black-as-the-night"
4241 }
42+ }
4343}
4444```
4545
You can’t perform that action at this time.
0 commit comments