Skip to content

Commit 58602ca

Browse files
committed
Add examples to parameters when provided
1 parent f85160b commit 58602ca

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/markdown/.partials/parameter.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@
2020
{{/each}}
2121
</tbody>
2222
</table>
23+
24+
{{#unless hideExamples}}
25+
{{#if schema.example}}
26+
##### Example
27+
28+
```json
29+
{{{stringify param.schema.example}}}
30+
```
31+
{{/if}}
32+
{{/unless}}

0 commit comments

Comments
 (0)