acacode / acacode/swagger-typescript-api

BigInt type for format: int64 types in swagger

Aberta
#687 3 comentários 1 reação 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
4.1k
Forks
436
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.