Forum Discussion

esakkimuthu991's avatar
esakkimuthu991
Frequent Visitor
2 years ago

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

 

No RepliesBe the first to reply