You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ce...@apache.org on 2024/06/03 17:36:33 UTC

(kafka) branch 3.8 updated: KAFKA-16881: InitialState type leaks into the Connect REST API OpenAPI spec (#16175)

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

cegerton pushed a commit to branch 3.8
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.8 by this push:
     new 495ec16fb23 KAFKA-16881: InitialState type leaks into the Connect REST API OpenAPI spec (#16175)
495ec16fb23 is described below

commit 495ec16fb23310ccf863beecb32cbf0687114af2
Author: Ken Huang <10...@users.noreply.github.com>
AuthorDate: Tue Jun 4 02:34:58 2024 +0900

    KAFKA-16881: InitialState type leaks into the Connect REST API OpenAPI spec (#16175)
    
    Reviewers: Chris Egerton <ch...@aiven.io>
---
 .../kafka/connect/runtime/rest/entities/CreateConnectorRequest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/entities/CreateConnectorRequest.java b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/entities/CreateConnectorRequest.java
index da8e235e424..9d338936dbb 100644
--- a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/entities/CreateConnectorRequest.java
+++ b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/entities/CreateConnectorRequest.java
@@ -47,7 +47,7 @@ public class CreateConnectorRequest {
         return config;
     }
 
-    @JsonProperty
+    @JsonProperty("initial_state")
     public InitialState initialState() {
         return initialState;
     }