Code Monkey home page Code Monkey logo

nodebuilder's People

Contributors

ivov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nodebuilder's Issues

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

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)

Nodebuilder generates duplicate paths

Hey,

Running node builder on the sevDesk API I receive duplicate paths for get and getAll.

Steps to reproduce:

  1. Get openAPI Spec from https://my.sevdesk.de/swaggerUI/index.html#/
  2. Run npm run generate
  3. see descriptions folder.

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

Support `"in": "body"` parameter

This is a bug report related to the generation of a node from a Swagger definition.

Description

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) :

!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

[Bug] OpenAPI generator produces invalid output

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" } },

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.