acacode / acacode/swagger-typescript-api
any typings using refs to components params
- Linguagem predominante
- TypeScript
- Estrelas
- 4.1k
- Forks
- 436
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Hi,
Codegen in cool ^^, but i have some problem
I'm trying to use next yaml
```
openapi: 3.0.2
components:
schemas:
Employee:
type: object
required:
- id
properties:
id:
type: string
head:
type: object
required:
- id
properties:
id:
$ref: '#/components/schemas/Employee/id'
```
And after generating i have this model
```
export interface Employee {
id?: string;
head?: { id?: any };
}
```
But I think it should turn out like this:
```
export interface Employee {
id?: string;
head?: { id: string };
}
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.