stwissel
3 years agoVisitor
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.
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.