danielgtaylor / danielgtaylor/openapi-cli-generator

Server Variables

Offen
#3 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
feature
Vorherrschende Sprache
Go
Sterne
218
Forks
54
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently, [OpenAPI 3 server variables](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#serverVariableObject) are not handled at all. They are required to have defaults, so at the very least we should string replace the template values with the defaults.

A better implementation would also expose these as optional parameters for the generated CLI. One complication is that different servers might have different variables, so the ones that get exposed might depend on the current server index.

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.