From d7a0f5f01b8c5d6aa6a25929d3ea81354a25fb50 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Fri, 14 Aug 2020 09:09:40 -0700 Subject: [PATCH 1/3] make queue message body optional --- .../Microsoft.QueueStorage/preview/2018-03-28/queue.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json b/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json index 978c467f4947..c4d9afe4a9c2 100644 --- a/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json +++ b/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json @@ -1799,7 +1799,7 @@ "QueueMessage": { "name": "QueueMessage", "in": "body", - "required": true, + "required": false, "schema": { "$ref": "#/definitions/QueueMessage" }, From a2393bba003057e374b423777e8c1df5d4efcd9b Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Fri, 14 Aug 2020 14:23:58 -0700 Subject: [PATCH 2/3] require queue message for post --- .../preview/2018-03-28/queue.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json b/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json index c4d9afe4a9c2..b8e60968bbb8 100644 --- a/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json +++ b/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json @@ -826,7 +826,7 @@ "description": "The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can also be specified to make the message invisible until the visibility timeout expires. A message must be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.", "parameters": [ { - "$ref": "#/parameters/QueueMessage" + "$ref": "#/parameters/RequiredQueueMessage", }, { "$ref": "#/parameters/VisibilityTimeout" @@ -964,7 +964,7 @@ "description": "The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update Message operation updates the visibility timeout of a message. You can also use this operation to update the contents of a message. A message must be in a format that can be included in an XML request with UTF-8 encoding, and the encoded message can be up to 64KB in size.", "parameters": [ { - "$ref": "#/parameters/QueueMessage" + "$ref": "#/parameters/QueueMessage", }, { "$ref": "#/parameters/PopReceipt" @@ -1806,6 +1806,16 @@ "x-ms-parameter-location": "method", "description": "A Message object which can be stored in a Queue" }, + "RequiredQueueMessage": { + "name": "QueueMessage", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/QueueMessage" + }, + "x-ms-parameter-location": "method", + "description": "A Message object which can be stored in a Queue" + }, "QueueName": { "name": "queueName", "in": "path", From c1758ce6426b3afb2fd47a1ef8118a1c5b093d64 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Fri, 14 Aug 2020 14:28:21 -0700 Subject: [PATCH 3/3] colons --- .../Microsoft.QueueStorage/preview/2018-03-28/queue.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json b/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json index b8e60968bbb8..27de1709fd0d 100644 --- a/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json +++ b/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json @@ -826,7 +826,7 @@ "description": "The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can also be specified to make the message invisible until the visibility timeout expires. A message must be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.", "parameters": [ { - "$ref": "#/parameters/RequiredQueueMessage", + "$ref": "#/parameters/RequiredQueueMessage" }, { "$ref": "#/parameters/VisibilityTimeout" @@ -964,7 +964,7 @@ "description": "The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update Message operation updates the visibility timeout of a message. You can also use this operation to update the contents of a message. A message must be in a format that can be included in an XML request with UTF-8 encoding, and the encoded message can be up to 64KB in size.", "parameters": [ { - "$ref": "#/parameters/QueueMessage", + "$ref": "#/parameters/QueueMessage" }, { "$ref": "#/parameters/PopReceipt"