Configure Download OpenAPI specification button for json vs yaml? #294
-
I may be missing something obvious here, but when using OpenAPI.json files and desiring json downloads, is there a way to configure the Download button to download the original json file vs the redocusaurus generated /redocusaurus/openapi.yaml file? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a way, you can pass |
Beta Was this translation helpful? Give feedback.
There is a way, you can pass
url
field along with thespec
and it will be used as the download url. I think I accidentally deleted that option from the main docs website, but it's still there in plugin docs - https://github.com/rohit-gohri/redocusaurus/tree/8477303e143fecf79f1e8e8d77831837c22860e4/packages/docusaurus-plugin-redoc#url-optional-string-download-url