Skip to content

Commit dd45ceb

Browse files
Updated JSON Schema for Humans
Signed-off-by: Steve Springett <[email protected]>
1 parent 70ea2fa commit dd45ceb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docgen/json/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
json-schema-for-humans==1.3.4
1+
json-schema-for-humans==1.5.1

docgen/json/templates/cyclonedx/section_properties.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ <h2 class="mb-0">
1515
</em>
1616
{%- endif -%}
1717
{%- if sub_property.is_required_property -%}
18-
{{ " " }}<span class="badge required-property">Required</span>
18+
{{ " " }}<span class="badge badge-warning required-property">Required</span>
1919
{%- endif -%}
20-
{%- if sub_property is deprecated -%}
21-
{{ " " }}<span class="badge deprecated-property">Deprecated</span>
20+
{%- if sub_property is deprecated or sub_property.kw_deprecated -%}
21+
{{ " " }}<span class="badge badge-danger deprecated-property">Deprecated</span>
2222
{%- endif -%}
2323
{%- if sub_property.is_pattern_property -%}
24-
{{ " " }}<span class="badge pattern-property">Pattern Property</span>
24+
{{ " " }}<span class="badge badge-info pattern-property">Pattern Property</span>
2525
{%- endif -%}
2626
</button>
2727
</h2>
@@ -35,7 +35,7 @@ <h2 class="mb-0">
3535
<h2 class="handle">
3636
<label>Pattern Property</label>
3737
</h2>
38-
<p>All property whose name matches the following regular expression must respect the following conditions</p>
38+
<p>All properties whose name matches the following regular expression must respect the following conditions</p>
3939
<span class="pattern-value">Property name regular expression: <code>{{ sub_property.property_name | escape }}</code></span>
4040
<br/>
4141
{%- endif -%}
@@ -52,4 +52,4 @@ <h2 class="handle">
5252
</div>
5353
</div>
5454
</div>
55-
</div>
55+
</div>

0 commit comments

Comments
 (0)