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
» ./node_modules/.bin/redoc-cli bundle test/openapi.yaml 130 ↵ REDACTED@ip-192-168-0-29
Prerendering docs
TypeError: operationParams.forEach is not a function
at mergeParams (/Users/REDACTED/devel/docs/api/node_modules/redoc/bundles/redoc.lib.js:8307:21)
at OperationModel.get (/Users/REDACTED/devel/docs/api/node_modules/redoc/bundles/redoc.lib.js:9740:31)
at OperationModel.get (/Users/REDACTED/devel/docs/api/node_modules/redoc/bundles/redoc.lib.js:8600:42)
at Object.children (/Users/REDACTED/devel/docs/api/node_modules/redoc/bundles/redoc.lib.js:14129:97)
at ReactDOMServerRenderer.render (/Users/REDACTED/devel/docs/api/node_modules/react-dom/cjs/react-dom-server.node.development.js:3635:55)
at ReactDOMServerRenderer.read (/Users/REDACTED/devel/docs/api/node_modules/react-dom/cjs/react-dom-server.node.development.js:3373:29)
at Object.renderToString (/Users/REDACTED/devel/rdocs/api/node_modules/react-dom/cjs/react-dom-server.node.development.js:3988:27)
at /Users/REDACTED/devel/docs/api/node_modules/redoc-cli/index.js:215:29
at Generator.next (<anonymous>)
at fulfilled (/Users/REDACTED/devel/docs/api/node_modules/redoc-cli/index.js:6:58)
To fix this I can add the parameter entry in only one of the files, linter is asking to add the parameter to each file, which, for me, make sense when they are split.
I am not sure if this is a bug with redoc-cli or if it is a bug on the openapi-cli.
The text was updated successfully, but these errors were encountered:
Hi,
I ran into what it looks like a bug on the bundle method. I am working with multifile specification, and using the openapi-cli linter.
When splitting into multiple files, paths with the same root that contain parameters will not bundle, under this testing case:
openapi.yaml:
Both paths
api@param@stuff.yaml
andapi@param@stuff2.yaml
with:And the
components/parameter/param.yaml
with:When trying to run bundle, it will fail with:
To fix this I can add the parameter entry in only one of the files, linter is asking to add the parameter to each file, which, for me, make sense when they are split.
I am not sure if this is a bug with redoc-cli or if it is a bug on the openapi-cli.
The text was updated successfully, but these errors were encountered: