...
1{
2 "definitions": {
3 "brand": {
4 "type": "object",
5 "properties": {
6 "name": {
7 "type": "string"
8 }
9 }
10 },
11 "category": {
12 "type": "object",
13 "properties": {
14 "children": {
15 "type": "array",
16 "items": {
17 "$ref": "#/definitions/category"
18 }
19 }
20 }
21 },
22 "car": {
23 "type": "object",
24 "properties": {
25 "id": {
26 "type": "integer",
27 "format": "int64"
28 },
29 "make": {
30 "type": "string"
31 },
32 "similar": {
33 "items": {
34 "$ref": "#/definitions/car"
35 }
36 },
37 "notSimilar": {
38 "additionalProperties": {
39 "$ref": "#/definitions/car"
40 }
41 },
42 "oneCar": {
43 "$ref": "#/definitions/car"
44 },
45 "category": {
46 "$ref": "#/definitions/category"
47 },
48 "brand": {
49 "$ref": "#/definitions/brand"
50 }
51 }
52 }
53 }
54}
View as plain text