From ecf45af39565a4e1234fe6e6d2f859e9302b6068 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk Date: Tue, 31 Jan 2023 11:11:11 -0800 Subject: [PATCH 1/2] Update swagger comments to reflect the actual behavior --- swagger/head.json | 12 ++++++------ swagger/header.json | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/swagger/head.json b/swagger/head.json index 438e0101..bf14ca0f 100644 --- a/swagger/head.json +++ b/swagger/head.json @@ -22,10 +22,10 @@ "tags": ["HttpSuccess Operations"], "responses": { "200": { - "description": "Successfully returns the true boolean value" + "description": "Successfully returns an empty response" }, "404": { - "description": "Successfully returns the false boolean value" + "description": "Successfully returns an empty response" }, "default": { "description": "Unexpected error" @@ -45,10 +45,10 @@ "tags": ["HttpSuccess Operations"], "responses": { "204": { - "description": "Successfully returns the true boolean value" + "description": "Successfully returns an empty response" }, "404": { - "description": "Successfully returns the false boolean value" + "description": "Successfully returns an empty response" }, "default": { "description": "Unexpected error" @@ -68,10 +68,10 @@ "tags": ["HttpSuccess Operations"], "responses": { "204": { - "description": "Successfully returns the true boolean value" + "description": "Successfully returns an empty response" }, "404": { - "description": "Successfully returns the false boolean value" + "description": "Successfully returns an empty response" }, "default": { "description": "Unexpected error" diff --git a/swagger/header.json b/swagger/header.json index 909cc953..d1ad4864 100644 --- a/swagger/header.json +++ b/swagger/header.json @@ -101,14 +101,14 @@ "/header/response/protectedkey": { "post": { "operationId": "header_responseProtectedKey", - "description": "Get a response with header value \"Content-Type\": \"text/html\"", + "description": "Get a response with header value \"Content-Type\": \"text/html; charset=utf-8\"", "tags": ["Header Operations"], "responses": { "200": { "description": "Empty Response", "headers": { "Content-Type": { - "description": "response with header value \"Content-Type\": \"text/html\"", + "description": "response with header value \"Content-Type\": \"text/html; charset=utf-8\"", "type": "string" } } From a41225b38dc0611847811687b2a0ee09456ba743 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk Date: Tue, 31 Jan 2023 22:42:21 -0800 Subject: [PATCH 2/2] Update more comments --- swagger/head-exceptions.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swagger/head-exceptions.json b/swagger/head-exceptions.json index af3e5080..19f2fe4d 100644 --- a/swagger/head-exceptions.json +++ b/swagger/head-exceptions.json @@ -22,7 +22,7 @@ "tags": ["HttpSuccess Operations"], "responses": { "200": { - "description": "Successfully returns the true boolean value" + "description": "Successfully returns an empty response" }, "default": { "description": "Unexpected error" @@ -42,7 +42,7 @@ "tags": ["HttpSuccess Operations"], "responses": { "204": { - "description": "Successfully returns the true boolean value" + "description": "Successfully returns an empty response" }, "default": { "description": "Unexpected error" @@ -57,7 +57,7 @@ "tags": ["HttpSuccess Operations"], "responses": { "204": { - "description": "Successfully returns the true boolean value" + "description": "Successfully returns an empty response" }, "default": { "description": "Unexpected error"