acacode / acacode/swagger-typescript-api

Custom type named FileXyz triggers content type workaround

Offen
#1,538 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
4.1k
Forks
436
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

There's a workaround that auto-sets content type form-data if it sees a payload entry of type `File`, but it matches for any (custom) types starting with "File" in JSON payloads, thus making them content-type form-data suddenly.

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.