acacode / acacode/swagger-typescript-api

any typings using refs to components params

Offen
#264 3 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
4.1k
Forks
436
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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 };
}
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.