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

increased flow size because each endpoint gets a node-attribute #119

Open
4 tasks done
crackytsi opened this issue Jan 28, 2021 · 0 comments
Open
4 tasks done

increased flow size because each endpoint gets a node-attribute #119

crackytsi opened this issue Jan 28, 2021 · 0 comments

Comments

@crackytsi
Copy link

crackytsi commented Jan 28, 2021

What are the steps to reproduce?

  • Create a node from as swagger file with multiple endpoints
  • Use that node in Node-Red

What happens?

  • Note that if you export an instance of the flow, each endpoint exists also as attribute, even if the value is empty or just "str".
  • Example of AhapiEmail endpoint:
{
        "id": "7f94b4a1.a54abc",
        "type": "AhapiEmail",
        "z": "d044536a.f72f",
        "service": "a2084bc4.eb4ff8",
        "postAhapiCaseByCaseidEmailexportByEmail_caseid": "",
        "postAhapiCaseByCaseidEmailexportByEmail_caseidType": "str",
        "postAhapiCaseByCaseidEmailexportByEmail_email": "",
        "postAhapiCaseByCaseidEmailexportByEmail_emailType": "str",
...}

Note that the following lines are attributes of the node (actually they come from the endpoint). These attributes seems to be useless, especially as they are empty:

        "postAhapiCaseByCaseidEmailexportByEmail_caseid": "",
        "postAhapiCaseByCaseidEmailexportByEmail_caseidType": "str",
        "postAhapiCaseByCaseidEmailexportByEmail_email": "",
        "postAhapiCaseByCaseidEmailexportByEmail_emailType": "str",

What do you expect to happen?

  • I do not expect this attributes on instance level.
  • If they are needed for anything (i can't imagine the reason), only not-empty ones should be added to reduce flow size.

Please tell us about your environment:

  • Node generator version: 0.1.0
  • Node.js version: 18.2
  • Node-RED version: 1.2.7
  • Browser: Chrome
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