From 4fabac8c9d06a6fb09544ad2ee86e882914d03b5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 22:54:14 -0700 Subject: [PATCH 1/2] Bump the github-actions group with 1 update (#238) --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b77919bc..47d3f1f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: env: JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up JDK uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 with: From b1245811a100097c0db00af73df45dbac387991a Mon Sep 17 00:00:00 2001 From: "Kim, Joo Hyuk" Date: Thu, 16 Nov 2023 04:11:11 +0900 Subject: [PATCH 2/2] Improve JavaDoc of `@JsonProperty.required` (#239) --- .../com/fasterxml/jackson/annotation/JsonProperty.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java b/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java index 124cd2c5..0331e27c 100644 --- a/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java +++ b/src/main/java/com/fasterxml/jackson/annotation/JsonProperty.java @@ -103,6 +103,14 @@ public enum MyEnum { * State of this property is exposed via introspection, and its * value is typically used by Schema generators, such as one for * JSON Schema. + *

+ * Also note that the required value must come directly from the + * input source (e.g., JSON) and not from secondary sources, such as + * defaulting logic or absent value providers. + * If secondary sources are expected to supply the value, + * this property should be set to {@code false}. This is important because + * validation of {@code required} properties occurs before the application of + * secondary sources. * * @since 2.0 */