Skip to content

Schema/OpenAPI - Warns users about duplicated operationId #7207

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

Merged

Conversation

gnuletik
Copy link
Contributor

This PR add a check to AutoSchema which warns the developer if the schema contains duplicated operationId.
As described in the OpenAPI specs, the operationId should be unique across the schema.

Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, that's a nice addition. Thanks.

@carltongibson carltongibson merged commit 797518a into encode:master Mar 2, 2020
@gnuletik gnuletik deleted the openapi/warn-duplicate-operationId branch March 2, 2020 17:02
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
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 this pull request may close these issues.

2 participants