-
Notifications
You must be signed in to change notification settings - Fork 27
/
schema-prop.md.hbs
26 lines (26 loc) · 1.13 KB
/
schema-prop.md.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<tr>
<td>{{#if prop.deprecated}}<s>{{tree path}}{{propName}}</s> (deprecated){{else}}{{tree path}}{{propName}}{{/if}}{{#if required}} <strong>(required)</strong>{{/if}}</td>
<td>
{{prop.type}}
{{~#if prop.anyOf}}anyOf{{~/if}}
{{~#if prop.oneOf}}oneOf{{~/if}}
{{~#if prop.items.type}}({{prop.items.type}}){{~/if}}
</td>
<td>{{{prop.descriptionAsHTML}}}</td>
<td>{{{acceptedValues prop.enum}}}</td>
</tr>
{{#each prop.anyOf}}
{{> schemaProp prop=. propName=@key path=(buildPath ../propName ../path @key)}}
{{/each}}
{{#each prop.oneOf}}
{{> schemaProp prop=. propName=@key path=(buildPath ../propName ../path @key)}}
{{/each}}
{{#each prop.properties}}
{{> schemaProp prop=. propName=@key required=(isRequired ../prop @key) path=(buildPath ../propName ../path @key)}}
{{/each}}
{{#each prop.additionalProperties.properties}}
{{> schemaProp prop=. propName=@key required=(isRequired ../prop.additionalProperties @key) path=(buildPath ../propName ../path @key)}}
{{/each}}
{{#each prop.items.properties}}
{{> schemaProp prop=. propName=@key required=(isRequired ../prop.items @key) path=(buildPath ../propName ../path @key)}}
{{/each}}