-
-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathsection_properties.html
More file actions
55 lines (51 loc) · 2.89 KB
/
Copy pathsection_properties.html
File metadata and controls
55 lines (51 loc) · 2.89 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% set html_id = sub_property.html_id %}
<div class="accordion" id="accordion{{ html_id }}">
<div class="card">
<div class="card-header" id="heading{{ html_id }}">
<h2 class="mb-0">
<button class="btn btn-link property-name-button collapsed" type="button" data-toggle="collapse" data-target="#{{ html_id }}"
aria-expanded="{{ expanded }}" aria-controls="{{ html_id }}" onclick="setAnchor('#{{ html_id }}')">
<i class="fa fa-chevron-right" style="margin-right:1rem; color:grey;"></i>
{%- if sub_property.is_additional_properties -%}
<em>
{%- endif -%}
<span class="property-name">{{ sub_property.property_display_name | escape }}</span>
{%- if sub_property.is_additional_properties -%}
</em>
{%- endif -%}
{%- if sub_property.is_required_property -%}
{{ " " }}<span class="badge badge-warning required-property">Required</span>
{%- endif -%}
{%- if sub_property is deprecated or sub_property.kw_deprecated -%}
{{ " " }}<span class="badge badge-danger deprecated-property">Deprecated</span>
{%- endif -%}
{%- if sub_property.is_pattern_property -%}
{{ " " }}<span class="badge badge-info pattern-property">Pattern Property</span>
{%- endif -%}
</button>
</h2>
</div>
<div id="{{ html_id }}"
class="collapse{% if expanded %} show{% endif %} property-definition-div" aria-labelledby="heading{{ html_id }}"
data-parent="#accordion{{ html_id }}">
<div class="card-body pl-5">
{%- if sub_property.is_pattern_property -%}
<h2 class="handle">
<label>Pattern Property</label>
</h2>
<p>All properties whose name matches the following regular expression must respect the following conditions</p>
<span class="pattern-value">Property name regular expression: <code>{{ sub_property.property_name | escape }}</code></span>
<br/>
{%- endif -%}
{%- if sub_property.is_additional_properties -%}
{%- if sub_property.is_additional_properties_schema -%}
<p class="additional-properties">Each additional property must conform to the following schema</p>
{%- else -%}
<p class="additional-properties">Additional Properties of any type are allowed.</p>
{%- endif -%}
{%- endif -%}
{{ content(sub_property) }}
</div>
</div>
</div>
</div>