You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/06/14 22:38:20 UTC

[pulsar] branch branch-2.9 updated: Fix wrong response type for swagger definitions (#16022)

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

mmerli pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.9 by this push:
     new f80225d5e6a Fix wrong response type for swagger definitions (#16022)
f80225d5e6a is described below

commit f80225d5e6a453d588902d68b3483919ea7e9b85
Author: visortelle <vi...@gmail.com>
AuthorDate: Wed Jun 15 00:35:04 2022 +0200

    Fix wrong response type for swagger definitions (#16022)
---
 .../src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
index 37b735464c3..4fe4cf31560 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
@@ -288,7 +288,7 @@ public class Namespaces extends NamespacesBase {
 
     @GET
     @Path("/{tenant}/{namespace}/messageTTL")
-    @ApiOperation(value = "Get the message TTL for the namespace")
+    @ApiOperation(value = "Get the message TTL for the namespace", response = Integer.class)
     @ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have admin permission"),
             @ApiResponse(code = 404, message = "Tenant or cluster or namespace doesn't exist") })
     public Integer getNamespaceMessageTTL(@PathParam("tenant") String tenant,