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

fix: 🐛 Shortcuts can silently collide and overwrite end-points. #616

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

selobu
Copy link

@selobu selobu commented Aug 19, 2024

Shortcuts can silently collide and overwrite end-points, generating incorrect swagger documentation.

The following example is incorrectly generating the swagger document:

image

If you press the first get method all the methods having the same doc will expand at the same time:

image

image

It should raise a ValidationError with the proposed fixed as follows:

image

…ting incorrect swagger documentation. namespace.py

Shortcuts can silently collide and overwrite end-points, generating incorrect swagger documentation.

The following example is incorrectly generating the swagger document:

![image](https://github.com/user-attachments/assets/128c9b1f-534a-4bdb-9ae2-206fc692b281)

If you press the first get method all the methods having the same doc will expand at the same time:

![image](https://github.com/user-attachments/assets/ab0219a3-a40a-4459-a77d-10ee5787b683)

![image](https://github.com/user-attachments/assets/eb6d8336-91e2-4b34-b94e-c7c6267f356b)

It should raise a ValidationError with the proposed fixed as follows:

![image](https://github.com/user-attachments/assets/8d9022a2-a204-46a1-950b-f33fc60bb412)
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.

1 participant