acacode / acacode/swagger-typescript-api
any typings using refs to components params
- Lingua principale
- TypeScript
- Stelle
- 4.1k
- Fork
- 436
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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 };
}
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.