Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml Openapi 3.0.0 conversion error #1

Open
iamjamesb opened this issue Feb 14, 2022 · 0 comments
Open

yaml Openapi 3.0.0 conversion error #1

iamjamesb opened this issue Feb 14, 2022 · 0 comments

Comments

@iamjamesb
Copy link

Got the following error when trying to convert the attached .yaml (openapi 3.0.0) file.
(Note: Had to change file type to .txt in order to upload but it is in yaml format)

$ openapi-to-md -s digoceanoriginal.yaml digoceanoriginal.md
(node:244283) UnhandledPromiseRejectionWarning: TypeError: Cannot use 'in' operator to search for 'content' in undefined
    at outputSchemas (/home/jbuffill/.nvm/versions/node/v12.22.3/lib/node_modules/openapi-to-md/dist/index.js:111:19)
    at outputResponses (/home/jbuffill/.nvm/versions/node/v12.22.3/lib/node_modules/openapi-to-md/dist/index.js:298:27)
    at /home/jbuffill/.nvm/versions/node/v12.22.3/lib/node_modules/openapi-to-md/dist/index.js:325:15
    at Array.reduce (<anonymous>)
    at outputPathDatail (/home/jbuffill/.nvm/versions/node/v12.22.3/lib/node_modules/openapi-to-md/dist/index.js:307:27)
    at convertMarkdown (/home/jbuffill/.nvm/versions/node/v12.22.3/lib/node_modules/openapi-to-md/dist/index.js:357:15)
(node:244283) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:244283) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

digocean-original.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant