You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
At times, the latest version of the redoc.standalone.js bundle can contain bugs. This is the situation right now, with 2.0.0-rc.72, which has several bugs. Preview-docs references https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js, with no option to override it.
Describe the solution you'd like
An additional optional parameter to specify the standalone.js version.
For example redocly preview-docs ./petstore.yaml --standalone-version=2.0.0-rc.58
This would result in https://cdn.jsdelivr.net/npm/redoc@2.0.0-rc.58/bundles/redoc.standalone.js being used instead of https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js.
Describe alternatives you've considered
I have not found other good alternatives. When publishing the documentation, we can always point to the desired version, but we would like to have the same experience when designing and testing the documentation using preview-docs.
Additional context
The affected code is to be found here:
There might be another issue which could be solved by this one, but not sure. I will create an example definition file and create a ticket to be sure. Redocly/redoc#2042
Is your feature request related to a problem? Please describe.
At times, the latest version of the
redoc.standalone.js
bundle can contain bugs. This is the situation right now, with 2.0.0-rc.72, which has several bugs. Preview-docs referenceshttps://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js
, with no option to override it.Describe the solution you'd like
An additional optional parameter to specify the standalone.js version.
For example
redocly preview-docs ./petstore.yaml --standalone-version=2.0.0-rc.58
This would result in
https://cdn.jsdelivr.net/npm/redoc@2.0.0-rc.58/bundles/redoc.standalone.js
being used instead ofhttps://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js
.Describe alternatives you've considered
I have not found other good alternatives. When publishing the documentation, we can always point to the desired version, but we would like to have the same experience when designing and testing the documentation using preview-docs.
Additional context
The affected code is to be found here:
redocly-cli/packages/cli/src/commands/preview-docs/preview-server/preview-server.ts
Line 37 in 67c53ee
The text was updated successfully, but these errors were encountered: