From 75bd21b00a6ea7728ad70964e34d52296339920c Mon Sep 17 00:00:00 2001 From: antisch Date: Wed, 14 Aug 2019 14:17:36 +1200 Subject: [PATCH] Fixed global parameters in swagger spec --- sdk/storage/azure-storage-blob/swagger/README.md | 13 ------------- .../azure-storage-blob/swagger/blob-2019-02-02.json | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/sdk/storage/azure-storage-blob/swagger/README.md b/sdk/storage/azure-storage-blob/swagger/README.md index bfd2301563f5..2573920f519f 100644 --- a/sdk/storage/azure-storage-blob/swagger/README.md +++ b/sdk/storage/azure-storage-blob/swagger/README.md @@ -49,19 +49,6 @@ directive: $.Expiry.format = "str"; ``` -### Add comp=metadata -``` yaml -directive: -- from: ./blob-2019-02-02.json - where: $["x-ms-paths"]["/{containerName}?restype=container"] - transform: > - $.get.parameters.splice(0, 0, { name: "comp", in: "query", required: false, type: "string", enum: [ "metadata" ] }); -- from: ./blob-2019-02-02.json - where: $["x-ms-paths"]["/{containerName}/{blob}"] - transform: > - $.head.parameters.splice(0, 0, { name: "comp", in: "query", required: false, type: "string", enum: [ "metadata" ] }); -``` - ### Make AccessTier Unique autorest.python complains that the same enum has different values ``` yaml diff --git a/sdk/storage/azure-storage-blob/swagger/blob-2019-02-02.json b/sdk/storage/azure-storage-blob/swagger/blob-2019-02-02.json index 18ae16c45ec5..d550949ddff5 100644 --- a/sdk/storage/azure-storage-blob/swagger/blob-2019-02-02.json +++ b/sdk/storage/azure-storage-blob/swagger/blob-2019-02-02.json @@ -9200,7 +9200,7 @@ "in": "query", "required": true, "type": "string", - "x-m-parameter-location": "method", + "x-ms-parameter-location": "method", "description": "The filter parameter enables the caller to query blobs whose tags match a given expression. The given expression must evaluate to true for a blob to be returned in the results." }, "BlockId": { @@ -9659,6 +9659,7 @@ "in": "query", "required": false, "type": "string", + "x-ms-parameter-location": "method", "enum": [ "legacy", "posix"