55 lines
1 KiB
JSON
55 lines
1 KiB
JSON
|
{
|
||
|
"definitions": {
|
||
|
"brand": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"name": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"category": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"children": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"$ref": "#/definitions/category"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"car": {
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "integer",
|
||
|
"format": "int64"
|
||
|
},
|
||
|
"make": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"similar": {
|
||
|
"items": {
|
||
|
"$ref": "#/definitions/car"
|
||
|
}
|
||
|
},
|
||
|
"notSimilar": {
|
||
|
"additionalProperties": {
|
||
|
"$ref": "#/definitions/car"
|
||
|
}
|
||
|
},
|
||
|
"oneCar": {
|
||
|
"$ref": "#/definitions/car"
|
||
|
},
|
||
|
"category": {
|
||
|
"$ref": "#/definitions/category"
|
||
|
},
|
||
|
"brand": {
|
||
|
"$ref": "#/definitions/brand"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|