oneOf or anyOf for the header schema
triptesh1212 opened this issue · 1 comments
triptesh1212 commented
Hi community, can we define an open api 3.0 specification where the schema of a header contains oneOf or anyOf ?
{
"name": "apiKey",
"in": "header",
"required": true,
"schema": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
}
]
}
}
Thanks,
Triptesh
ralfhandl commented
The value of schema
is a Schema Object which explicitly allows anyOf
, so this should work.