Skip to content

Commit

Permalink
Fixed global parameters in swagger spec
Browse files Browse the repository at this point in the history
  • Loading branch information
annatisch committed Aug 14, 2019
1 parent 4c75025 commit 75bd21b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
13 changes: 0 additions & 13 deletions sdk/storage/azure-storage-blob/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion sdk/storage/azure-storage-blob/swagger/blob-2019-02-02.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -9659,6 +9659,7 @@
"in": "query",
"required": false,
"type": "string",
"x-ms-parameter-location": "method",
"enum": [
"legacy",
"posix"
Expand Down

0 comments on commit 75bd21b

Please sign in to comment.