Closed atacan closed 1 month ago
Int.max is 9223372036854775807, but the value in the document is higher, so it fails to parse (ends in 776000).
So the failure seems expected.
Who wrote the OpenAPI document? Why does it have a value larger than Int.max (on 64-bit platforms)?
Thank you for the information.
Who wrote the OpenAPI document?
It's OpenAI's official document
This is not the first inaccuracy I've seen in this OpenAPI document. Perhaps you can file an issue on their repo? https://github.com/openai/openai-openapi
Description
A property like the following
fails with
Expected an Integer literal but found a floating point value (9.223372036854776e+18)
Reproduction
You can use https://github.com/openai/openai-openapi/blob/c880fa100c99e42c029ef8497cb97aa63a8ab706/openapi.yaml#L12044
and manually generate
swift package generate-code-from-openapi
Package version(s)
Expected behavior
parse it as integer
Environment
Additional information
No response