Skip to content

Commit ded2535

Browse files
committed
Minor correction to readme
1 parent 021dc83 commit ded2535

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,23 @@ based on the HTTP nodes deployed in a flow.
2929

3030
**Note:** You may additionally add parameters to the swagger file in 'settings.js' to have those parameters automatically added to each path in the generated swagger doc.
3131

32-
swagger: {
32+
"swagger": {
3333
"template": {
3434
"swagger": "2.0",
3535
"info": {
3636
"title": "My Node-RED API",
3737
"version": "0.0.1"
3838
}
3939
},
40-
"parameters": {
41-
"name": "parameterA",
42-
"type": "string",
43-
"in": "header",
44-
"required": false,
45-
"description": "This is a test parameter to show how parameters are automatically added to each path in the generated swagger doc."
46-
}
40+
"parameters": [
41+
{
42+
"name": "parameterA",
43+
"type": "string",
44+
"in": "header",
45+
"required": false,
46+
"description": "This is a test parameter to show how parameters are automatically added to each path in the generated swagger doc."
47+
}
48+
]
4749
}
4850

4951
4. After installing the package, you have the option to identify metadata for each HTTP-In node that will be used in the swagger doc generation.

0 commit comments

Comments
 (0)