-
Notifications
You must be signed in to change notification settings - Fork 9.1k
It's impossible to send request with selected value by default #6621
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
Comments
Please post your API definition file (YAML or JSON). You can export it from Swagger UI as explained here: https://stackoverflow.com/q/48525546. |
@hkosova
If somebody has a NestJS application and wants to export the definition he should add the |
Confirmed a bug: if an OAS3 form field is required and has a single-value enum, "try it out" doesn't work. The workaround is to add an
|
I'm submitting a...
I was redirected to here by the author of the
swagger-ui-express
(scottie1984/swagger-ui-express#219 (comment))So, below is my description.
Current behavior
I have an endpoint that allows me to upload stats for different types of sports matches and select the type. Right now, I can upload the statistics file only for hockey matches that's why only one item is added to the select. So, I attach the statistics file and press on the execute button as the select has only one item. However, the request isn't sent to my backend via the swagger. I can see that the border of the select is red colour and something went wrong but what?
I attached the screenshot below the view of my endpoint.
I would say before creating this issue I was looking through various issues on both stackoverflow and here. Unfortunately, I couldn't find a solution. I read through the documentation but the result is the same.
Expected behavior
I expect I will be able to send a request to my backend to upload stats without any issues in spite of that the select has only one item now.
Minimal reproduction of the problem with instructions
I decided to create the repository where I reproduced my issue.
Link: https://github.com/AlexeyKorkoza/nestjs-swagger-reproduce-issue
Environment
The text was updated successfully, but these errors were encountered: