You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/2020-12/meta-data/deprecated.markdown
+61-54Lines changed: 61 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,89 +28,96 @@ related:
28
28
keyword: writeOnly
29
29
---
30
30
31
-
The `deprecated` keyword is used to indicate that a particular property should not be used and may be removed in the future. It provides a warning to users or applications that certain parts of the schema or are no longer recommended for use.
31
+
The `deprecated` keyword, when set to `true`, signifies that an instance value
32
+
(such as a specific property) should not be used and may be removed in the
33
+
future. This keyword does not affect validation, but the evaluator will collect
34
+
its value as an annotation.
32
35
33
-
*`deprecated` does not affect data validation but serves as an informative annotation.
34
-
* A true value suggests that applications should avoid using the deprecated property, and the property might be removed in future versions of the schema.
36
+
{{<best-practice>}}
35
37
36
-
## Examples
38
+
Avoid setting this keyword to the default value `false`. If an instance value
39
+
is not considered to be deprecated, the best practice is to omit the use of
40
+
this keyword altogether. This prevents unnecessarily generating and collecting
41
+
an annotation that does not carry any additional meaning.
0 commit comments