Skip to content

Commit af6231d

Browse files
handrewsPhil Sturgeon
authored and
Phil Sturgeon
committed
Fix #74: add "deprecated" keyword
1 parent c5717a1 commit af6231d

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

jsonschema-validation.xml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<email>henry@cloudflare.com</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,26 @@
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 the property
1040+
MAY be removed from the document in the future.
1041+
</t>
1042+
<t>
1043+
An instance document that is marked as "deprecated" for the entire document
1044+
means the entire document MAY be removed in the future.
1045+
</t>
1046+
<t>
1047+
Omitting this keyword has the same behavior as a value of false.
1048+
</t>
1049+
</section>
1050+
10311051
<section title='"readOnly" and "writeOnly"'>
10321052
<t>
10331053
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)