Skip to content

Commit

Permalink
Javadoc improvement for @JsonProperty.required
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 1, 2015
1 parent 85f5f0c commit 9fb1c59
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,15 @@
* rectify the problem, for example, by supplying a default
* value).
*<p>
* Note that as of 2.0, this property is NOT used by
* <code>BeanDeserializer</code>: support is expected to be
* added for a later minor version.
*
* Note that as of 2.6, this property is only used for Creator
* Properties, to ensure existence of property value in JSON:
* for other properties (ones injected using a setter or mutable
* field), no validation is performed. Support for those cases
* may be added in future.
* State of this property is exposed via introspection, and its
* value is typically used by Schema generators, such as one for
* JSON Schema.
*
* @since 2.0
*/
boolean required() default false;
Expand Down

0 comments on commit 9fb1c59

Please sign in to comment.