Skip to content

Commit 17d9fc0

Browse files
committed
Fix #64
1 parent 35ad69d commit 17d9fc0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

release-notes/VERSION

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ NOTE: Annotations module will never contain changes in patch versions,
1414
2.6.0 (not yet released)
1515

1616
#43: Add `@JsonFormat(with=Feature.xxx)` to support things like
17-
`DeserializationFeature.ACCEEPT_SINGLE_VALUE_AS_ARRAY`.
17+
`DeserializationFeature.WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED` on per-property basis.
1818
#56: Improve `ObjectIdGenerators.key()` to handle `null` appropriately by returning `null`
1919
#58: Add new properties for `@JsonIgnoreProperties`, "allowGetters", "allowSetters"
2020
#60: Add new value type, `OptBoolean`, for "optional booleans", to support proper handling
2121
and usage of default values, not just explicit true/false.
22-
#61: dd new property, `@JsonProperty.access` (and matching enum) to support read-only/write-only properties
22+
#61: Add new property, `@JsonProperty.access` (and matching enum) to support read-only/write-only properties
23+
#64: Add `@Documented` for `@JsonPropertyDescription`
24+
(suggested by Zoltan S)
2325
- Add `JsonInclude.Include.NON_ABSENT` value, for excluding "absent" Optional values.
24-
- Add tag interface `JacksonAnnotationValue` for helper types used for encapsuating information
26+
- Add tag interface `JacksonAnnotationValue` for helper types used for encapsulating information
2527
for "complex" annotations (multi-property ones)
2628

2729
2.5.0 (01-Jan-2015)

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

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.fasterxml.jackson.annotation;
22

3+
import java.lang.annotation.Documented;
34
import java.lang.annotation.ElementType;
45
import java.lang.annotation.Retention;
56
import java.lang.annotation.RetentionPolicy;
@@ -15,6 +16,7 @@
1516
*/
1617
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
1718
@Retention(RetentionPolicy.RUNTIME)
19+
@Documented // since 2.6
1820
@JacksonAnnotation
1921
public @interface JsonPropertyDescription
2022
{

0 commit comments

Comments
 (0)