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
Thank you @ponelat
Let's say I need to describe API endpoint that accepts a float number. And I'd like to inform the consumers via the OpenAPI documentation what that number could be, therefore I'm using minimum/maximum properties for that purpose. Since the API runs in Node.js and operated by JavaScript engine, the largest safe number is Number.MAX_VALUE which is 1.7976931348623157e+308, and the minimum one would be -1.7976931348623157e+308 accordingly.
And all that did work fine before I switched to the next editor (for OAS 3.1)
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: