Closed rovkinmax closed 1 year ago
Hello! There is a way to do it without fork. You can set the int64 format for the property you want to make Long. Example for yaml:
properties:
id:
type: integer
format: int64
result:
@SerialName("id")
val id: kotlin.Long,
Motivation: In swagger or openApi we have only integer and number, and in generated models uses Int type. But It is not valid in all cases, because sometimes backend can send number value from Long as integer and client can't deserialise this values.
So, I wanna change all generated type as Int to Long. Could you help me with that? If generator doesn't have this option, may be you can show me were I can change it by myself in fork? Because I already use this lib to generate network SDK from swagger.json and have problem described above