I am just getting started with swagger, and wondered if there's a way to return multiple schema objects(corresponding to different response codes) for a particular process that has been initiated.
For instance, consider the following code:
description: successful query
description: Wrong ID entered.
description: Incorrect date entered.
If a process has wrong ID and incorrect date entered, I want to be able to return the schemas corresponding to error codes 400 and 401 both. How can I achieve this?
It should work pretty much the same way you described it. Is this not the experience you get?