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:39:01 UTC

[pulsar] branch branch-2.8 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.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git


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

commit 9d68c42319b4b755d909b16fa30cd4808a16e6d6
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 ed5d9e13ae0..76e543001f2 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
@@ -273,7 +273,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,