File tree Expand file tree Collapse file tree 2 files changed +31
-26
lines changed
templates/markdown/.partials Expand file tree Collapse file tree 2 files changed +31
-26
lines changed Original file line number Diff line number Diff line change
1
+ {{#if example}}
2
+ ##### Example
3
+
4
+ {{#if summary}}> {{{summary}}}{{/if}}
5
+
6
+ {{#if description}}{{{description}}}{{/if}}
7
+
8
+ ``` json
9
+ {{{stringify example }}}
10
+ ```
11
+ {{else}}
12
+ {{#if generatedExample}}
13
+ ##### Example _ (generated)_
14
+
15
+ ``` json
16
+ {{{stringify generatedExample }}}
17
+ ```
18
+ {{/if}}
19
+ {{/if}}
Original file line number Diff line number Diff line change 14
14
###### {{contentTypeName}}
15
15
{{> schema schema=schema schemaName='body' hideTitle=true hideExamples=true}}
16
16
17
- {{#if schema.example}}
18
- ##### Example
19
-
20
- ``` json
21
- {{{stringify schema.example }}}
22
- ```
23
- {{else}}
24
- {{#if schema.generatedExample}}
25
- ##### Example of payload _ (generated)_
26
- ``` json
27
- {{{stringify schema.generatedExample }}}
28
- ```
29
- {{/if}}
17
+ {{> example example=schema.example generatedExample=schema.generatedExample }}
18
+ {{#if examples}}
19
+ {{#each examples as |example exampleName|}}
20
+ {{> example example=example.value description=example.description}}
21
+ {{/each}}
30
22
{{/if}}
23
+
31
24
{{/each}}
32
25
{{/if}}
33
26
36
29
#### Request body
37
30
{{> schema schema=../schema schemaName='body' hideTitle=true hideExamples=true}}
38
31
39
- {{#if ../example}}
40
- ##### Example
41
-
42
- ``` json
43
- {{{stringify ../example }}}
44
- ```
45
- {{else}}
46
- {{#if ../generatedExample}}
47
- ##### Example of payload _ (generated)_
48
- ``` json
49
- {{{stringify ../generatedExample }}}
50
- ```
51
- {{/if}}
32
+ {{> example example=schema.example generatedExample=schema.generatedExample }}
33
+ {{#if ../examples}}
34
+ {{#each ../examples as |example exampleName|}}
35
+ {{> example example=example.value description=example.description}}
36
+ {{/each}}
52
37
{{/if}}
38
+
53
39
{{/equal}}
54
40
{{/each}}
55
41
You can’t perform that action at this time.
0 commit comments