Skip to content

Commit 91c198e

Browse files
author
Phil Sturgeon
committed
Deprecated clarfications around arrays
1 parent 6b21194 commit 91c198e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

jsonschema-validation.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,8 +1043,16 @@
10431043
is going to be removed in the future.
10441044
</t>
10451045
<t>
1046-
A root schema containing "deprecated" with a value of true indicates the entire
1047-
root schema MAY be removed in the future.
1046+
A root schema containing "deprecated" with a value of true indicates that
1047+
the entire resource beng described MAY be removed in the future.
1048+
</t>
1049+
<t>
1050+
When the "deprecated" keyword is used to describe an array, it can be used
1051+
in the tuple form to deprecate positional schemas. If "deprecated" is used
1052+
in the list form it can mark regular "items" as deprecated, whilst allowing
1053+
"additionalItems". Vice verse, setting "deprecated" to true inside
1054+
"additionalItems" would mark the additional items as deprecated, but not
1055+
effect list usage.
10481056
</t>
10491057
<t>
10501058
Omitting this keyword has the same behavior as a value of false.

0 commit comments

Comments
 (0)