acacode / acacode/swagger-typescript-api

any typings using refs to components params

Aberta
#264 3 comentários 9 reações 0 responsáveis Ver no GitHub
enhancement
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.

Receba novas issues na sua caixa de entrada

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