Skip to content

Commit 9b834f2

Browse files
author
Phil Sturgeon
authored
Merge pull request #737 from json-schema-org/deprecated
Fix #74: add "deprecated" keyword
2 parents c5717a1 + a51ff12 commit 9b834f2

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

jsonschema-validation.xml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<email>[email protected]</email>
5252
</address>
5353
</author>
54-
54+
5555
<author fullname="Ben Hutton" initials="B" surname="Hutton" role="editor">
5656
<organization>Wellcome Sanger Institute</organization>
5757
<address>
@@ -956,7 +956,7 @@
956956
"const": {
957957
"typ": "JWT",
958958
"alg": "HS256"
959-
}
959+
}
960960
},
961961
{
962962
"type": "object",
@@ -967,7 +967,7 @@
967967
}
968968
}
969969
]
970-
}
970+
}
971971
}]]>
972972
</artwork>
973973
<postamble>
@@ -1028,6 +1028,27 @@
10281028
</t>
10291029
</section>
10301030

1031+
<section title='"deprecated"'>
1032+
<t>
1033+
The value of this keyword MUST be a boolean. When multiple occurrences
1034+
of this keyword are applicable to a single sub-instance, the resulting
1035+
value MUST be true if any occurrence specifies a true value, and MUST
1036+
be false otherwise.
1037+
</t>
1038+
<t>
1039+
If "deprecated" has a value of boolean true, it indicates that applications
1040+
SHOULD refrain from usage of the declared property. It MAY mean the property
1041+
is going to be removed in the future.
1042+
</t>
1043+
<t>
1044+
A root schema containing "deprecated" with a value of true indicates the entire
1045+
root schema MAY be removed in the future.
1046+
</t>
1047+
<t>
1048+
Omitting this keyword has the same behavior as a value of false.
1049+
</t>
1050+
</section>
1051+
10311052
<section title='"readOnly" and "writeOnly"'>
10321053
<t>
10331054
The value of these keywords MUST be a boolean. When multiple occurrences

meta/meta-data.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"type": "string"
1818
},
1919
"default": true,
20+
"deprecated": {
21+
"type": "boolean",
22+
"default": false
23+
},
2024
"readOnly": {
2125
"type": "boolean",
2226
"default": false

0 commit comments

Comments
 (0)