acacode / acacode/swagger-typescript-api

$ref from JSON is not recognized and replaced by any

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

Beschreibung

In my yaml I have references to json models in the local files, like this

` schemas:
details:
$ref: 'models/details.json'
`

When I generate TS, I am gettin the property type as "any". No errors are shown. Just a missing type in a result.

When I describe details as Yaml in this file, then everything works as expected, and generator creates an interface. So it's something about the external JSON models that is not working. However the same setup works with another TS generator, so models themselves are correct.

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.