A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v3.1, v3.0, and v2.0 as well as AsyncAPI v2.x.
2.43k
stars
235
forks
source link
BigInt/int64 number format not working #2522
Open
guilhermecgs opened 1 year ago
Describe the bug BigInt not working. In the example below, maximum is converted to number format, losing its precision.
operationTypeCode: type: integer format: int64 minimum: -2147483648 maximum: 9223372036854775800 example: 42
Expected behavior When receiving this parameter in the javascript, the type should be BigInt
module.exports = (prop) => { return [{ message:
Type ${typeof prop.maximum}
}]; } Type = BigIntAdditional context Already tested with maximum: 9223372036854775800n (n at final). It does not work either