Modeling money and big integers in OpenAPI: int64 precision, decimal amounts, and why number fails for currency
JSON numbers are parsed as doubles, so a 19-digit order id or an exact currency amount can lose digits the moment a client decodes them. Large ids often belong in strings, and money almost never belongs in type:number. Here is the precision table, the string-as-decimal pattern, a
Oct 8, 20266 min read

