You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a mix of #182 and #256, so let's keep the suggestions there. The suggested solution here introduces an additional level of complexity that will cause extra confusion with the potential parameter grouping in the future. I think the generic solution to #182 would be better in this case.
Let's say you have these two routes in your API where the bold parameters are required.
How would you describe this in Swagger 2.0?
Currently you can "hack" it by defining the route like the following.
What this means is that the way the API is described, consumers could see it as being able to call GET - /values?type={type}&to={to}.
What I propose is a way to create a group or set of parameters and specify multiple possible groups or sets in a route. Example follows.
The text was updated successfully, but these errors were encountered: