You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ex...@apache.org on 2025/11/07 22:25:51 UTC

(nifi) branch main updated: NIFI-15194 Replaced io.swagger.v3.oas.annotations.media.Schema deprecated required with requiredMode (#10506)

This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 1c840e4812 NIFI-15194 Replaced io.swagger.v3.oas.annotations.media.Schema deprecated required with requiredMode (#10506)
1c840e4812 is described below

commit 1c840e48121817a98f231cbb07cc40fd2730e25f
Author: dan-s1 <ds...@gmail.com>
AuthorDate: Fri Nov 7 17:25:45 2025 -0500

    NIFI-15194 Replaced io.swagger.v3.oas.annotations.media.Schema deprecated required with requiredMode (#10506)
    
    Signed-off-by: David Handermann <ex...@apache.org>
---
 .../apache/nifi/web/api/entity/ClearBulletinsForGroupRequestEntity.java | 2 +-
 .../org/apache/nifi/web/api/entity/ClearBulletinsRequestEntity.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsForGroupRequestEntity.java b/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsForGroupRequestEntity.java
index 80cc42af61..5696f982d8 100644
--- a/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsForGroupRequestEntity.java
+++ b/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsForGroupRequestEntity.java
@@ -53,7 +53,7 @@ public class ClearBulletinsForGroupRequestEntity extends Entity {
     @XmlJavaTypeAdapter(InstantAdapter.class)
     @Schema(description = "The timestamp from which to clear bulletins (inclusive). This field is required.",
             type = "string",
-            required = true
+            requiredMode = Schema.RequiredMode.REQUIRED
     )
     public Instant getFromTimestamp() {
         return fromTimestamp;
diff --git a/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsRequestEntity.java b/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsRequestEntity.java
index bf05132082..e3c50d7cba 100644
--- a/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsRequestEntity.java
+++ b/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ClearBulletinsRequestEntity.java
@@ -38,7 +38,7 @@ public class ClearBulletinsRequestEntity extends Entity {
     @XmlJavaTypeAdapter(InstantAdapter.class)
     @Schema(description = "The timestamp from which to clear bulletins (inclusive). This field is required.",
             type = "string",
-            required = true
+            requiredMode = Schema.RequiredMode.REQUIRED
     )
     public Instant getFromTimestamp() {
         return fromTimestamp;