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
- 11 months ago
- 8 years ago
Recent Discussions
- 12 days ago
- 31 days ago