Skip to content

Commit 9fb1c59

Browse files
committed
Javadoc improvement for @JsonProperty.required
1 parent 85f5f0c commit 9fb1c59

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java

+9-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,15 @@
6060
* rectify the problem, for example, by supplying a default
6161
* value).
6262
*<p>
63-
* Note that as of 2.0, this property is NOT used by
64-
* <code>BeanDeserializer</code>: support is expected to be
65-
* added for a later minor version.
66-
*
63+
* Note that as of 2.6, this property is only used for Creator
64+
* Properties, to ensure existence of property value in JSON:
65+
* for other properties (ones injected using a setter or mutable
66+
* field), no validation is performed. Support for those cases
67+
* may be added in future.
68+
* State of this property is exposed via introspection, and its
69+
* value is typically used by Schema generators, such as one for
70+
* JSON Schema.
71+
*
6772
* @since 2.0
6873
*/
6974
boolean required() default false;

0 commit comments

Comments
 (0)