blob: 217dc9f4bc191765e4f2a119b5d554962e2a8196 [file] [log] [blame]
{
"openapi": "3.0.0",
"info": {
"title": "test",
"version": "v1"
},
"components": {
"schemas": {
"MyString": {
"oneOf": [
{
"type": "object",
"required": [
"exact"
],
"properties": {
"exact": {
"type": "string",
"format": "string"
}
}
},
{
"type": "object",
"required": [
"regex"
],
"properties": {
"regex": {
"type": "string",
"format": "string"
}
}
}
]
},
"MyInt": {
"type": "integer"
},
"Foo": {
"type": "object",
"required": [
"include",
"exclude",
"count"
],
"properties": {
"include": {
"oneOf": [
{
"type": "object",
"required": [
"exact"
],
"properties": {
"exact": {
"type": "string",
"format": "string"
}
}
},
{
"type": "object",
"required": [
"regex"
],
"properties": {
"regex": {
"type": "string",
"format": "string"
}
}
}
]
},
"exclude": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"exact"
],
"properties": {
"exact": {
"type": "string",
"format": "string"
}
}
},
{
"type": "object",
"required": [
"regex"
],
"properties": {
"regex": {
"type": "string",
"format": "string"
}
}
}
]
}
},
"count": {
"type": "integer"
}
}
}
}
}
}