increased flow size because each endpoint gets a node-attribute
crackytsi opened this issue · 0 comments
crackytsi commented
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