Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigInt/int64 number format not working #2522

Open
guilhermecgs opened this issue Aug 7, 2023 · 0 comments
Open

BigInt/int64 number format not working #2522

guilhermecgs opened this issue Aug 7, 2023 · 0 comments
Labels
p/medium t/bug Something isn't working triaged

Comments

@guilhermecgs
Copy link

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 = BigInt

Additional context
Already tested with   maximum:  9223372036854775800n (n at final). It does not work either

@guilhermecgs guilhermecgs changed the title BigInt number format not working BigInt/int64 number format not working Aug 7, 2023
@mnaumanali94 mnaumanali94 added t/bug Something isn't working p/medium triaged labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p/medium t/bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

2 participants