Mark parameters as "exclusive" in OpenAPI3.x ?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2021
09:43 PM
10-24-2021
09:43 PM
Mark parameters as "exclusive" in OpenAPI3.x ?
Does the OpenAPI specification have a provision to mark the listed parameters as exclusive, so a validation implementation would flag any additional submitted parameter as specification violation / invalid request? - Sorry if this would be the wrong place to ask.
Solved! Go to Solution.
Labels:
- Labels:
-
Swagger Editor
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2021
03:18 AM
10-26-2021
03:18 AM
Hi @stwissel
If you're referring to the parameters, as in...
parameters:
- name: one
in: query
schema:
type: string
# - ...
Then unfortunately the specification doesn't yet support that.
For reference: https://swagger.io/docs/specification/describing-parameters/#dependencies
and https://github.com/OAI/OpenAPI-Specification/issues/256.
Feel free to add a thumbs up on the OpenAPI specification issue or your use case to help get it into the specification.
