-
Notifications
You must be signed in to change notification settings - Fork 211
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
OpenAPI suggests that "operationId" (or "operationref") is mandatory. #6326
Conversation
5eab036
to
9eb0b4d
Compare
From https://swagger.io/specification/:
The description for operationId is under https://swagger.io/specification/:
There is no mention of REQUIRED, and although the unicity is a MUST, there is no explicit statement about existence. Issues on the OpenAPI repository (#1019, #1907) asking for it be made mandatory have been rejected, and clarify that it is not mandatory. This next bit is my opinion: there is no valid reason to demand that someone manually writes an operationId, creating one from the path/verb is trivial to automate correctly. It is bizarre that the SDK generators are both demanding this manual de-normalisation while complaining about duplicates. Anyway, there is clearly no downside to having this, thank you for adding it. |
To fix the tests (I tried to do, but I can't seem to write to your fork), it is necessary to:
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Using the verb concatenated with the camel-cased path appears to be a common default. For example, the verb |
No, though it's easy enough to add. Proposed impl is here: #6349, let me know if that works for you and we'll get it merged. |
… (or "operationref") is mandatory. Signed-off-by: Markus Alexander Kuppe <[email protected]>
…' into mku-OpenAPIOperationId
- Move http verb before path - Handle path templates - Camel-Case http path and verb Signed-off-by: Markus Alexander Kuppe <[email protected]>
ba8f2dc
to
c940601
Compare
nt