1

I have the scenario where an endpoint can accept 'N' number of query parameters with a non-predetermined name and value i.e. I have no idea what query parameters someone might pass in e.g.

?i=can&pass=anything&in=here

How would I describe the above using the Swagger specification?

1
  • 1
    Dynamic query params are now supported in OpenAPI 3.0 - see the ^^ linked Q&A. Commented Sep 27, 2019 at 11:27

1 Answer 1

6
+100

Looks like it's not supported in the version 2.0 of the OpenAPI specification, but it may be addressed in future versions.

This issue and this pull request can give you more details.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.