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