Bloumb
3 years agoOccasional Visitor
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 ...
- 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).