Skip to content

Commit

Permalink
Extend events section in api-route layout
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Jan 2, 2025
1 parent cccc86a commit 03739d3
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions src/layouts/api-route.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,42 @@ Possible enum values:
{{description}}
{{/each}}
{{#if events.length}}
## Events
{{~#each events}}
{{#each events}}
### `{{name}}`
{{#if description}}
{{description}}
{{/if}}
{{#each properties}}
<details>
<summary><code>{{name}}</code> <code>{{format}}</code></summary>
{{#if isDeprecated}}
{% hint style="warning" %}
**Deprecated**. {{deprecationMessage}}
{% endhint %}
{{/if}}
{{#if description}}
{{description}}
{{/if}}
{{#if enumValues}}
Possible enum values:
{{#each enumValues}}
- `{{this}}`
{{/each}}
{{/if}}
</details>
{{/each}}
---

{{~/each}}
{{/each}}
{{/if}}

0 comments on commit 03739d3

Please sign in to comment.