Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

How to support Multiple Optional query Parameters in dredd? #1071

Closed
ghost opened this issue Jun 21, 2018 · 1 comment
Closed

How to support Multiple Optional query Parameters in dredd? #1071

ghost opened this issue Jun 21, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 21, 2018

for example, i have 3 pairs of query parameters and I need only one pair at any given point of time.
Therefore i want to test for each pair. I haven't came across the solution for this in Swagger. is it possible to send the request for each pair and then validate the response for each pair. If i specify all query parameters and with "required: false", I would choose any one pair(that is two query parameters) and change the transaction.request.uri according to it. Then dredd would perform the request and would move to another request. But i want dredd to make the same request again with different query parameters. Is there any option to do this in hooks?. if you can support me, it would be of great help. Thank you 😀.

@honzajavorek
Copy link
Contributor

Yes, you can do this using hooks: #995

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant