-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support "in": "body"
parameter
#3
Comments
Thank you for your report. The fixes will be merged soon - meanwhile here is the correct output. Note that nodebuilder builds most of the node, but not yet all of it - it does not create the credentials file and the icon. You will also need to fill in the placeholders |
Thank you for your quick reply. I will check and keep you informed |
I have just checked the generated file. The generation process terminated well. And I can add the generated file as a custom node in the n8n project. But, there is still a problem... When you look into the Swagger definition, you will have a "schema" block that has been predefined for query parameter and for response as follows However, I cannot find the code generated for schema of query parameter and schema of response. Does your generation tool take into account these pieces of information during its generation process ? |
@ivov Do you have any idea about my question ? |
Dereferencing is supported. This works correctly for the sample Lichess spec and also for OpenCell. You can inspect the dereferenced spec at nodebuilder/src/services/OpenApiStager.ts Lines 36 to 45 in 06f9d1a
What is not supported is the nodebuilder/src/types/params.d.ts Lines 72 to 80 in 06f9d1a
|
"in": "body"
parameter
Hello @ivov , thank you very much for your reply. I hope you can soon support "in": "body" parameter |
Hello @ivov , I found the file _deref.json that has been generated by processing dereferencing. However, I do not know where to add this dereferenring file in n8n project so that n8n can take into consideration this file. Any idea ? |
Nodebuilder dereferences the spec (i.e. replaces its references at What remains to be done is enabling the parser to generate params for |
Hi @ivov : Do you have good news about the implementation of the parser for parameter "in": "body" |
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) :
!
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
The text was updated successfully, but these errors were encountered: