flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

fix: :bug: Shortcuts can silently collide and overwrite end-points.

Open selobu opened this issue 1 year ago • 0 comments

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

selobu avatar Aug 19 '24 11:08 selobu