yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
626 stars 146 forks source link

int64 integers are not being generated to Int64 but instead to Int #264

Closed marcelvoss closed 3 years ago

marcelvoss commented 3 years ago

Hi there,

we have a field in our API definition that has a int64 type but after generating had to realize that SwagGen does not respect that and generates to a regular Int with precision depending on the platform's architecture. In our case, this might actually make us lose precision.

Example from our spec:

legacy_id:
          deprecated: true
          type: integer
          format: int64
          example: 100067734
marcelvoss commented 3 years ago

Found https://github.com/yonaskolb/SwagGen/issues/176#issue-463797503. Closing, sorry.