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
Hi! We have a bad case. When a user in Try it out mode enters the value “5.0” into a field of type string, it is rounded to “5”. If you enter “5.1” or “5.0.0” everything works as expected.
It is reproduced only in requests with payload of multipart/form-data type. There is no such problem in JSON.
Judging by your code, you run each value in FormData through JSON.parse, which turns the string “5.0” into “5”.
Is there anything I can do on my end to fix this, and if not, perhaps you can? Or I can send the PR to you, just tell me how to do it in your space.
To reproduce...
Steps to reproduce the behavior:
Go to any query with multipart/form-data
Click on "Try it out"
Set string value to 5.0
See 5.0 was converted to 5
Expected behavior
Numbers with .0 will not round
Screenshots
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
Hi! We have a bad case. When a user in Try it out mode enters the value “5.0” into a field of type string, it is rounded to “5”. If you enter “5.1” or “5.0.0” everything works as expected.
It is reproduced only in requests with payload of multipart/form-data type. There is no such problem in JSON.
Judging by your code, you run each value in FormData through JSON.parse, which turns the string “5.0” into “5”.
Is there anything I can do on my end to fix this, and if not, perhaps you can? Or I can send the PR to you, just tell me how to do it in your space.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
Numbers with .0 will not round
Screenshots
The text was updated successfully, but these errors were encountered: