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
After upgrading ReDoc from 2.0.0-rc.8 I noticed that examples for parameters in my OpenAPI Specification got rendered incorrectly in case that parameter names contain a hyphen.
ReDoc React
Using ReDoc as React component the example values display as ?parameter-name}
redoc-cli
Serving the same specification via redoc-cli the examples are rendered as if processed by JSON.stringify(). As mentioned in #504
With the current React behavior the examples become useless, while the redoc-cli behavior enables the workaround of specifying the example as a string myself.
I have the same problem with redoc-cli 0.8.5.
Examples are not correct, when the parameter name contains one '-' character.
This bug is really annoying.
The problem is not present with redoc-cli 0.8.4 and previous.
After upgrading ReDoc from 2.0.0-rc.8 I noticed that examples for parameters in my OpenAPI Specification got rendered incorrectly in case that parameter names contain a hyphen.
ReDoc React
Using ReDoc as React component the example values display as ?parameter-name}
redoc-cli
Serving the same specification via redoc-cli the examples are rendered as if processed by JSON.stringify(). As mentioned in #504
With the current React behavior the examples become useless, while the redoc-cli behavior enables the workaround of specifying the example as a string myself.
Affected ReDoc versions: 2.0.0-rc.9, 2.0.0-rc.10
Tested redoc-cli versions: 0.8.4, 0.8.5
References
Render from redoc-cli 0.8.5
Render via ReDoc Live Demo:
OpenAPI sample:
The text was updated successfully, but these errors were encountered: