Forum Discussion

Bloumb's avatar
Bloumb
Occasional Visitor
3 years ago

Swagger UI quoted vs unquoted longs

When I am entering int64/long values into the swagger UI it seems after a certain amount of digits the lower order values start to get corrupted.  Here's an example:     While the value I'm ...
  • HKosova's avatar
    3 years ago

    It's a known issue caused by JavaScript limitations. These large numbers fall outside of JavaScript/JSON number range, that's why they are getting rounded. See this discussion for details:

    https://github.com/swagger-api/swagger-ui/issues/2030

     

    The suggested solution is to transfer large numbers as strings (i.e. change the type from integer to string).