Forum Discussion
Solved
Nixol
Occasional Contributor
Thanks HKosova for your explanation.
Could you also assist to answer the following followup questions:
1. can each of the requests have a different tag? eg. Body1 has "TagA" and body2 has "TagB"
2. can each of the requests have a corresponding response? e.g. if Body1 is used, then the response will be Response1, if Body2 is used then the response will be Response2.
HKosova
4 years agoSmartBear Alumni (Retired)
1. No.
2. No. You can use oneOf to define the possible response schemas, but OpenAPI doesn't support request/response correlation.
Here's a related feature request you can track:
- Nixol4 years agoOccasional Contributor
Is there any plans to include the previously mentioned scenarios in future releases? It will be great if this can be done. Thanks
Related Content
Recent Discussions
- 2 days agokj20nt
- 10 days agoprogrammer_j
- 15 days agotobyclements