1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-27 22:14:52 +01:00
Files
descheduler/vendor/github.com/go-openapi/loads/fixtures/json/models/modelWithComposition.json
2017-07-30 18:48:49 -04:00

69 lines
1.6 KiB
JSON

{
"definitions": {
"Cat": {
"description": "A representation of a cat",
"allOf": [
{ "$ref": "#/models/Pet" },
{
"properties": {
"huntingSkill": {
"type": "string",
"description": "The measured skill for hunting",
"default": "lazy",
"enum": ["clueless", "lazy", "adventerous", "aggressive"]
}
},
"required": [ "huntingSkill" ]
}
]
},
"Dog": {
"description": "A representation of a dog",
"allOf": [
{ "$ref": "#/models/Pet" },
{
"properties": {
"packSize": {
"type": "integer",
"format": "int32",
"description": "the size of the pack the dog is from",
"default": 0,
"minimum": 0
}
},
"required": [ "name", "packSize" ]
}
]
},
"Fish": {
"description": "A representation of a fish",
"allOf": [
{ "$ref": "#/models/Pet" },
{
"properties": {
"fins": {
"type": "integer",
"format": "int32",
"description": "count of fins",
"minimum": 0
}
},
"required": [ "fins" ]
}
]
},
"Pet": {
"discriminator": "petType",
"properties": {
"name": {
"type": "string"
},
"petType": {
"type": "string"
}
},
"required": [ "name", "petType" ]
}
}
}