ivov / nodebuilder

Build n8n nodes from OpenAPI specs and YAML files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

slamer59 opened this issue · comments

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)