Skip to content

Commit ffc399d

Browse files
committed
Create schemaWithRef.json
1 parent bdc7bd2 commit ffc399d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

schemaWithRef.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"definitions": {
3+
"foo": {
4+
"type": "object",
5+
"additionalProperties": false,
6+
"properties": {
7+
"bar": {
8+
"type": "boolean",
9+
"default": false
10+
}
11+
}
12+
},
13+
"bar": {
14+
"allOf": [
15+
{
16+
"$ref": "#/definitions/foo"
17+
},
18+
{
19+
"properties": {
20+
"bar": {
21+
"type": "boolean",
22+
"enum": [
23+
true
24+
]
25+
}
26+
}
27+
}
28+
]
29+
}
30+
},
31+
"properties": {
32+
"foo": {
33+
"$ref": "#/definitions/foo"
34+
},
35+
"bar": {
36+
"$ref": "#/definitions/bar"
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)