-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Description
I tried allow-spec-file-download and it adds two buttons - one to download and another to open in a new tab.
I noticed the following things:
- When
spec-urlpoints to a YAML file both buttons trigger a download of a YAML file. - When
spec-urlpoints to a JSON file the buttons behave as expected. - Irrespective of the format, the name of the downloaded file is always
openapi-spec.
It would be nice if:
- The visibility of the view button was controlled by a separate setting - maybe
allow-spec-file-view- Or perhaps it could just be hidden if
spec-urlpointed to a YAML file.
- Or perhaps it could just be hidden if
- There was the option to download in both JSON and YAML format.
- The downloaded file had the appropriate extension:
.jsonor.yaml.
Metadata
Metadata
Assignees
Labels
No labels