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
When running docusaurus gen-api-docs all, the several warnings are generated:
WARNING: failed to create example from schema object: TypeError: e.map is not a function
and later, when running the site using docusaurus start, the error occur
e.map is not a function
TypeError: e.map is not a function
at eval (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:6746)
at Array.map (<anonymous>)
at U (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:6736)
at H (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:6225)
at eval (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:13373)
at a (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:2118)
at eval (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:14680)
at e.merge (webpack-internal:///./node_modules/allof-merge/dist/index.cjs:6:14706)
at mergeAllOf (webpack-internal:///./node_modules/docusaurus-theme-openapi-docs/lib/theme/Schema/index.js:10:114)
at SchemaNode (webpack-internal:///./node_modules/docusaurus-theme-openapi-docs/lib/theme/Schema/index.js:38:38)
Expected behavior
Should generate without warnings and run docs site without errors
Describe the bug
When running
docusaurus gen-api-docs all
, the several warnings are generated:and later, when running the site using
docusaurus start
, the error occurExpected behavior
Should generate without warnings and run docs site without errors
Current behavior
Generate errors as described above
Possible solution
To fix the code in
https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/main/packages/docusaurus-plugin-openapi-docs/src/openapi/createRequestExample.ts
https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/blob/main/packages/docusaurus-plugin-openapi-docs/src/openapi/createResponseExample.ts
where catch error occur
Steps to reproduce
Run
docusaurus gen-api-docs all
withThe repo where it can be reproduced is at https://github.com/zkcloudworker/zkcloudworker-docs/tree/open-api
Context
I want to add OpenAPI to docs site
Your Environment
"@docusaurus/core": "^3.6.3",
"@docusaurus/preset-classic": "^3.6.3",
"docusaurus-plugin-openapi-docs": "^4.3.1",
"docusaurus-theme-openapi-docs": "^4.3.1",
"typescript": "~5.7.2",
node v23.3.0
https://docs.zkcloudworker.com/
https://github.com/zkcloudworker/zkcloudworker-docs/tree/open-api
The text was updated successfully, but these errors were encountered: