Forum Discussion
TanyaYatskovska
4 years agoSmartBear Alumni (Retired)
Hi Dharma_Teja,
If you are using OpenAPI 3.x, you can look at using oneOf. Here is an example:
paths:
/login:
post:
#...
responses:
201:
application/json:
content:
schema:
oneOf:
- '#/components/schemas/one'
- '#/components/schemas/two'
If this doesn't help, could you please share the entire definitions?
Related Content
- 2 months agoStoplight
Recent Discussions
- 8 days agoprogrammer_j
- 13 days agotobyclements