Swagger model: int64 comes as integer

I use in a REST app a class like:

TMyClass = class
FId: int64;
FName: string;
end;

In Swagger the model comes as:

TMyClass {
Id Integer
Name string
}

How I can export "Id" as Long?

Hi,

The class generator uses Integer or Int64. If you want to use Long that's possible, but you'll need to manually fix the definition after generating the classes.

Where I can do it?

Unless I'm misunderstanding your question, in the output, after you copy the class structure into your own units. The REST client is designed to generate the class structure based on JSON once. The REST client can be used to test requests and responses, afterwards you can use it to create an application with those requests and the generated Delphi classes. Delphi classes that can be modified to your likings. Nothing prevents you from changing the type you need.

I don't think that's a good idea. It would have to be changed manually after every update. Isn't there an attribute for this? Or is it possible to modify the export?

Does anyone else have any ideas?