Skip to content

Commit

Permalink
Change group name for operations path, and rename response type defin…
Browse files Browse the repository at this point in the history
…ition (#2563)

* Swagger specs for all existing versions of Microsoft.PolicyInsights

* Add support for --validate; make where clauses explicit in existing (approval request pending) suppressions; add new suppression for equivalent paths error (approval request pending)

* Fix $top in examples; fix casing in examples

* Fix two more instances of $top type in examples

* Fix metadata examples by adding content type header and changing the body to a single string

* Remove EQUIVALENT_PATH suppressions; add extendedProperties as additionalProperties; add @odata.count to operations; remove "type" from "rows" in first 2017-08-09-preview and add descriptions

* Fix remaining examples with bad casings

* Fix additionalParameters definition; fix duplicate paths

* Remove redundant operations path/definitions from one of the swagger files for each version (one per namespace is sufficient as long as both files are fed into autorest as a bundle)

* Change group name for operations path, and rename response type definition

* Change group name for operations path, and rename response type definition (old API versions)
  • Loading branch information
bulentelmaci authored and marstr committed Mar 2, 2018
1 parent f0f2bb7 commit fffe623
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
},
"/providers/Microsoft.PolicyInsights/operations": {
"get": {
"operationId": "PolicyInsights_ListOperations",
"operationId": "Operations_List",
"description": "Lists available operations.",
"parameters": [
{
Expand All @@ -277,7 +277,7 @@
"200": {
"description": "List of available operations.",
"schema": {
"$ref": "#/definitions/Operations"
"$ref": "#/definitions/OperationsListResults"
}
},
"default": {
Expand Down Expand Up @@ -476,7 +476,7 @@
}
}
},
"Operations": {
"OperationsListResults": {
"description": "List of available operations.",
"properties": {
"value": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
},
"/providers/Microsoft.PolicyInsights/operations": {
"get": {
"operationId": "PolicyInsights_ListOperations",
"operationId": "Operations_List",
"description": "Lists available operations.",
"parameters": [
{
Expand All @@ -277,7 +277,7 @@
"200": {
"description": "List of available operations.",
"schema": {
"$ref": "#/definitions/Operations"
"$ref": "#/definitions/OperationsListResults"
}
},
"default": {
Expand Down Expand Up @@ -486,7 +486,7 @@
}
}
},
"Operations": {
"OperationsListResults": {
"description": "List of available operations.",
"properties": {
"@odata.count": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@
},
"/providers/Microsoft.PolicyInsights/operations": {
"get": {
"operationId": "PolicyInsights_ListOperations",
"operationId": "Operations_List",
"description": "Lists available operations.",
"parameters": [
{
Expand All @@ -925,7 +925,7 @@
"200": {
"description": "List of available operations.",
"schema": {
"$ref": "#/definitions/Operations"
"$ref": "#/definitions/OperationsListResults"
}
},
"default": {
Expand Down Expand Up @@ -1243,7 +1243,7 @@
}
}
},
"Operations": {
"OperationsListResults": {
"description": "List of available operations.",
"properties": {
"@odata.count": {
Expand Down

0 comments on commit fffe623

Please sign in to comment.