You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue/4 - Handles the case where there are no /components/schemas but there is an anonymous one in an operation. (#13)
* First commit with samples.
* Work in progress.
* Work in progress.
* First commit with code worth sharing.
* Fixed merge messages in README.
* fixes#4 This template now works when the payload schema is embedded inside an operation, as is the case with the Streetlights demo.
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,13 @@ Support for arrays, specifying function names and other features are yet to be i
9
9
10
10
In the samples directory there is an example of code that is close to what we intend to generate.
11
11
12
-
To run the sample code, copy config-template.ini to config.ini and enter your host and password.
12
+
## Configuration
13
+
14
+
To run the sample code, copy config-template.ini to config.ini and enter the connection details.
15
+
16
+
If no authentication is needed, you need not provide the username and password values.
17
+
18
+
If no host is given, the template attempts to find an mqtt host in the servers section of the AsyncAPI document to use instead.
13
19
14
20
## Specification Conformance
15
21
Note that this template interprets the AsyncAPI document in conformance with the [AsyncAPI Specification](https://www.asyncapi.com/docs/specifications/2.0.0/).
@@ -29,6 +35,7 @@ Run the Generator using the Python Paho Template
29
35
ag ~/AsyncApiDocument.yaml @asyncapi/python-paho-template
30
36
```
31
37
38
+
Copy config-template.ini to config.ini and edit it to provide the connection details.
info.x-view | view | client | By default, this template generates publisher code for subscribe operations and vice versa. You can switch this by setting this parameter to 'provider'.
0 commit comments