blob: b2c0c97983d9655a1d2fe5e01c003cd57cb85cc9 [file] [log] [blame]
{
"openapi": "3.0.0",
"info": {},
"components": {
"schemas": {
"MyString": {
"type": "object",
"oneOf": [
{
"required": [
"exact"
],
"properties": {
"exact": {
"type": "string",
"format": "string"
}
}
},
{
"required": [
"regex"
],
"properties": {
"regex": {
"type": "string",
"format": "string"
}
}
}
]
},
"MyInt": {
"type": "integer"
},
"Foo": {
"type": "object",
"required": [
"include",
"exclude",
"count"
],
"properties": {
"include": {
"$ref": "#/components/schemas/MyString"
},
"exclude": {
"type": "array",
"items": {
"$ref": "#/components/schemas/MyString"
}
},
"count": {
"$ref": "#/components/schemas/MyInt"
}
}
}
}
}
}