acacode / acacode/swagger-typescript-api

BigInt type for format: int64 types in swagger

Open
#687 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Can I make (maybe using --custom or --templates) with this generator types BigInt for and only for
```
type: integer
format: int64
```
?
For example i have structure
```
pet:
type: object
properties:
age:
type: integer
unique_big_id:
type: integer
format: int64
```
Can i get generated type
```
export interface Pet {
age: number;
unique_big_id: BigInt;
}
```
and marshal response from response from server `{ "unique_big_id" : 9223372036854775807, "age": 123 }` to Pet without losing precision to 9223372036854775000?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.