File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed
Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1717 egress-policy : audit
1818
1919 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20- with :
21- token : ${{ secrets.COMMIT_TOKEN }}
2220 - uses : actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2321 with :
2422 node-version : ' lts/*'
Original file line number Diff line number Diff line change @@ -36,3 +36,4 @@ class SchemaKeyword(Enum):
3636 ADDITIONAL_PROPERTIES = "additionalProperties"
3737 FORMAT = "format"
3838 TYPE = "type"
39+ DEPRECATED = "deprecated"
Original file line number Diff line number Diff line change @@ -374,6 +374,10 @@ def kw_pattern(self) -> Optional["SchemaNode"]:
374374 def kw_properties (self ) -> Optional ["SchemaNode" ]:
375375 return self .get_keyword (SchemaKeyword .PROPERTIES )
376376
377+ @property
378+ def kw_deprecated (self ) -> Optional ["SchemaNode" ]:
379+ return self .get_keyword (SchemaKeyword .DEPRECATED )
380+
377381 @property
378382 def kw_pattern_properties (self ) -> Optional ["SchemaNode" ]:
379383 return self .get_keyword (SchemaKeyword .PATTERN_PROPERTIES )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ <h2 class="mb-0">
1616 {%- if sub_property.is_required_property -%}
1717 {{ " " }}< span class ="badge badge-warning required-property "> Required</ span >
1818 {%- endif -%}
19- {%- if sub_property is deprecated -%}
19+ {%- if sub_property is deprecated or sub_property.kw_deprecated -%}
2020 {{ " " }}< span class ="badge badge-danger deprecated-property "> Deprecated</ span >
2121 {%- endif -%}
2222 {%- if sub_property.is_pattern_property -%}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ <h2 class="mb-0">
1616 {%- if sub_property.is_required_property -%}
1717 {{ " " }}< span class ="badge badge-warning required-property "> Required</ span >
1818 {%- endif -%}
19- {%- if sub_property is deprecated -%}
19+ {%- if sub_property is deprecated or sub_property.kw_deprecated -%}
2020 {{ " " }}< span class ="badge badge-danger deprecated-property "> Deprecated</ span >
2121 {%- endif -%}
2222 {%- if sub_property.is_pattern_property -%}
You can’t perform that action at this time.
0 commit comments