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

TypeError: Cannot read property 'properties' of undefined; swagger.io openapi3 #89

Closed
sergerdn opened this issue Oct 10, 2020 · 0 comments · Fixed by #108
Closed

TypeError: Cannot read property 'properties' of undefined; swagger.io openapi3 #89

sergerdn opened this issue Oct 10, 2020 · 0 comments · Fixed by #108

Comments

@sergerdn
Copy link

API Platform version(s) affected: latest at this moment

Running command:

npx @api-platform/client-generator https://petstore3.swagger.io/api/v3/openapi.json vue_openapi3/ --generator vue --format openapi3

Output :

typeError: Cannot read property 'properties' of undefined
    at /Users/blaaa/.npm/_npx/6097/lib/node_modules/@api-platform/client-generator/node_modules/@api-platform/api-doc-parser/lib/openapi3/handleJson.js:32:33
    at Array.map (<anonymous>)
    at Object.default_1 [as default] (/Users/blaaa/.npm/_npx/6097/lib/node_modules/@api-platform/client-generator/node_modules/@api-platform/api-doc-parser/lib/openapi3/handleJson.js:16:27)
    at /Users/blaaa/.npm/_npx/6097/lib/node_modules/@api-platform/client-generator/node_modules/@api-platform/api-doc-parser/lib/openapi3/parseOpenApi3Documentation.js:12:45
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Possible Solution
Pls have a look api-platform/create-client#104 (comment)

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

Successfully merging a pull request may close this issue.

2 participants