-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Does not recognise numbers above 1e20
: value must be a number
#5249
Comments
Worth to note that $ 1e20
100000000000000000000
$ 1e21
1e+21 |
Thanks @RobinTail, we can take a look. I'd be curious what sized number you needed to discover this issue :) |
Thank you @ponelat And all that did work fine before I switched to the |
- minimum - maximum - exclusiveMinimum - exclusiveMaximum Refs swagger-api/swagger-editor#5249
- minimum - maximum - exclusiveMinimum - exclusiveMaximum Refs swagger-api/swagger-editor#5249
Hi @RobinTail, Fix has been deployed at https://editor-next.swagger.io/. Thank you for the report! |
Q&A (please complete the following information)
Content & configuration
Minimum reproduction:
Describe the bug you're encountering
It says " maximum' value must be a number ", but it is a number.
Expected behavior
I expect it to handle the range of numbers supported by JS
Number
, which is:but it's failing already on
1e21
.Screenshots
1e21
, regardless of OAS version1e100500
Additional context or thoughts
openapi
version (setting 3.0 in next editor does not fix it),1e20
, works fine.The text was updated successfully, but these errors were encountered: