NSwag icon indicating copy to clipboard operation
NSwag copied to clipboard

long (c#) to bigint (typescript) support

Open mbfis opened this issue 2 years ago • 1 comments

Hi all and thank you for this great tool.

Does nswag have a feature to generate a "bigint" typescript var in the client proxies if the source property type in c# is "long"?

I would assume it does, considering that the generated project.swagger.json file contains:

"property": {
    "type": "integer",
    "format": "int64"
}

but in the client proxies (typsecript/angular) there's a related var which has the "number" type instead of a "bigint".

Is there any link/page which details this kind of a situation? Is this configurable somewhere?

Thank you in advance for any help.

mbfis avatar May 27 '22 06:05 mbfis