You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enum contains default even though no default was configured.
Leaving default selected leaves request unsubmittable with red visual indicator, must manually select.
To reproduce
Expand /test.
Press Try it out.
Press execute.
See red visual indicator.
Expected behavior
Enum should not have default available in first place, but looking past this, the default should be submittable anyways. Instead, manual selection is required. Not sure if these bugs are related or separate.
Screenshots
Additional Context
Same issue as #3706 and #3890, both closed in 2017.
This applies to enums in form bodies, not as parameters (see below comments). So application/x-www-form-urlencoded and multipart/form-data are affected.
The text was updated successfully, but these errors were encountered:
Thanks for fixing up my example to add the fields I missed, and will change title & description to include multipart/form-data (and also application/x-www-form-urlencoded, was able to reproduce w/ that).
MarioIshac
changed the title
Enum Contains Default Against Configuration, and Default is Unsubmittable Anyways
For Forms: Enum Contains Default Against Configuration, and Default is Unsubmittable Anyways
Feb 26, 2021
Q&A (please complete the following information)
Content & configuration
Plug into editor.swagger.io.
Describe the bug you're encountering
To reproduce
Expected behavior
Enum should not have default available in first place, but looking past this, the default should be submittable anyways. Instead, manual selection is required. Not sure if these bugs are related or separate.
Screenshots
Additional Context
Same issue as #3706 and #3890, both closed in 2017.
This applies to enums in form bodies, not as parameters (see below comments). So
application/x-www-form-urlencoded
andmultipart/form-data
are affected.The text was updated successfully, but these errors were encountered: