Skip to content

Commit 08b085b

Browse files
Update generator-template.md
1 parent cbeaac3 commit 08b085b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

apps/generator/docs/generator-template.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ Before you begin, make sure you have the following set up:
3939
4040
## Background context
4141
42-
**This tutorial focuses on code generation using templates — not full AsyncAPI document modeling.**
43-
4442
There is a list of [community maintained templates](https://www.asyncapi.com/docs/tools/generator/template#generator-templates-list), but what if you do not find what you need? In that case, you'll create a user-defined template that generates custom output from the generator.
45-
Before you create the template, you'll need an [AsyncAPI document](https://www.asyncapi.com/docs/tools/generator/asyncapi-document) that defines the properties used in your generator.
46-
In this tutorial, we use a simplified AsyncAPI document focused on extracting data for template generation.
47-
You'll use the following document saved as test/fixtures/asyncapi.yml.
43+
Before you create the template, you'll need to have an [AsyncAPI document](https://www.asyncapi.com/docs/tools/generator/asyncapi-document) that defines the properties you want to use in your template to test against. In this tutorial, you'll use the following template saved in the **test/fixtures/asyncapi.yml** file in your template project directory.
4844
4945
5046
```yaml
@@ -69,9 +65,9 @@ channels:
6965
$ref: '#/components/schemas/Temperature' # refactored from inline payload for better reuse
7066
7167
operations:
72-
sendTemperatureChanged:
73-
action: send
74-
summary: Temperature changes are pushed to the broker
68+
recieveTemperatureChanged:
69+
action: recieve
70+
summary: Temperature changes are recieved from the broker
7571
channel:
7672
$ref: '#/channels/temperatureChanged'
7773

0 commit comments

Comments
 (0)