RFC: BigInt support #1439
Labels
enhancement
New feature or request
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Description
In the OpenAPI spec for qdrant, we have this definition for an ID:
This is causing issues in the JS REST client when the backend sends back a large number for an ID that is lost when converted to JS's number. I'm not sure how best to solve this issue because it feels like a breaking change. Currently, a
number
field is generated fornumber
andinteger
fields in the OpenAPI spec.Proposal
Generate a
BigInt
field when parsing ainteger
field in the OpenAPI spec.The text was updated successfully, but these errors were encountered: