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

Cannot use 'in' operator to search for 'oneOf' in undefined #7

Open
slamer59 opened this issue Apr 8, 2022 · 0 comments
Open

Cannot use 'in' operator to search for 'oneOf' in undefined #7

slamer59 opened this issue Apr 8, 2022 · 0 comments

Comments

@slamer59
Copy link

slamer59 commented Apr 8, 2022

Hello, trying to parse this API
https://axonaut.com/api/v2/doc.json

if ("oneOf" in param.schema && param.schema.oneOf) {
                        ^

TypeError: Cannot use 'in' operator to search for 'oneOf' in undefined   
    at C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:193:25
    at Array.forEach (<anonymous>)
    at OpenApiStager.processParameters (C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:187:20)
    at OpenApiStager.createOperation (C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:154:31)
    at C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:91:43
    at Array.forEach (<anonymous>)
    at C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:89:25
    at Array.forEach (<anonymous>)
    at _loop_1 (C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:88:23)
    at OpenApiStager.getMainParams (C:\Users\thomas.pedot\Developpements\platformes\sandbox\openapi2n8n\nodebuilder\dist\services\OpenApiStager.js:100:13)
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