Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please permit optional path parameters #2258

Closed
matjung opened this issue Jun 7, 2020 · 1 comment
Closed

Please permit optional path parameters #2258

matjung opened this issue Jun 7, 2020 · 1 comment

Comments

@matjung
Copy link

matjung commented Jun 7, 2020

required | boolean | Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.

In the specification for OpenAPI 3.x I noticed that path parameters must have required: true
I would like to suggest, that path parameters could also be optional e.g.
server.com/path/required/optional/optional
My implemented web service contains a path parameter which is optional
In my yaml I will state required: false

@MikeRalphson
Copy link
Member

Closing as as duplicate of #93 / #622 but feel free to continue the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants