Forum Discussion

triptesh25's avatar
triptesh25
New Member
11 days ago

oneOf or anyOf for the header schema

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

 

No RepliesBe the first to reply