acacode / acacode/swagger-typescript-api

BigInt type for format: int64 types in swagger

Aperta
#687 3 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.