Ask a Question

mutiple schemas for same api

esakkimuthu991
Frequent 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

 

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: