esakkimuthu991
3 years agoFrequent Visitor
mutiple schemas for same api
Hi Team,
Here I have a scenario where based on an input requests, the responses can be different
for ex:
if user requests API with input 'A'. then we can assume the response is schema-1
if user requests API with input 'B'. then we can assume the response is schema-2
if user requests API with no input. then we can assume the response is both schema-1 & schema-2
How effectively handle this scenario in openapi spec v.3.0 also i need to generate a code using openapi-generator-maven-plugin