Skip to content

Duplicate operationId not detected #96

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

Closed
jayvdb opened this issue Jul 31, 2020 · 0 comments · Fixed by #109
Closed

Duplicate operationId not detected #96

jayvdb opened this issue Jul 31, 2020 · 0 comments · Fixed by #109

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Jul 31, 2020

operationId | string | Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions.

I have OpenAPI 3.0.3 containing the following, bug raised in generator tfranzel/drf-spectacular#137, and it isnt detected as invalid.

  /oscarapi/checkout/payment-states/:
    get:
      operationId: oscarapi_checkout_payment_states_retrieve
      ...
  /oscarapi/checkout/payment-states/{id}/:
    get:
      operationId: oscarapi_checkout_payment_states_retrieve
      ...
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

Successfully merging a pull request may close this issue.

1 participant