ivov / nodebuilder Goto Github PK
View Code? Open in Web Editor NEWBuild n8n nodes from OpenAPI specs and YAML files
License: MIT License
Build n8n nodes from OpenAPI specs and YAML files
License: MIT License
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)
Hey,
Running node builder on the sevDesk API I receive duplicate paths for get
and getAll
.
Steps to reproduce:
npm run generate
Also noticed other minor flaws, not sure if they are sevDesk specific, like undefined body args for
handleListing.call(this, method, path, BODY, qs);
happy to provide further details or jump on discord etc. for investigation.
Best,
Cedric
I have the following Swagger definition 2.0 that I want to generate the node using nodebuilder by executing the following command : npm run generate
I generated successfully the node with this command,
However, I got the following error while I add the generated files in the following directory \packages\nodes-base\nodes{myDirectory} of the project n8n (see the following image) :
Could you please review the tool nodebuilder, so that it can fix the generated error
Swagger_def.txt
?
Thank you in advance for your help
First of all really cool idea for a project, I tried it out with an OpenAPI spec that contains a lot of descriptions. If one of them has an ' inside e.g. to indicate possible strings like 'asc' or 'desc' the output produces an invalid file.
Example:
{ "name": "OrderBy", "in": "query", "description": "Sort order of the returned 'Values' (default: \"asc\", alternative: \"desc\")\r\nValues are ordered by Timestamp", "schema": { "type": "string", "description": "Sort order of the returned 'Values' (default: \"asc\", alternative: \"desc\")\r\nValues are ordered by Timestamp" } },
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.