Skip to content

Commit

Permalink
Microsoft.Automation swagger linter-check fix for sdk generation (#12333
Browse files Browse the repository at this point in the history
)

* Making userimpersonation as lower-case

* Updating common definitions to fix linter error

* Updating the references to refer to definitions and reverting changes in definition file

* fixing model validations
  • Loading branch information
shivamT95-msft authored Jan 11, 2021
1 parent 4c93f28 commit 2298361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "Impersonate your user account"
"user_impersonation": "impersonate your user account"
}
}
},
Expand Down Expand Up @@ -154,7 +154,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -198,7 +198,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -212,19 +212,6 @@
}
},
"definitions": {
"ErrorResponse": {
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
},
"description": "Error Response."
},
"PrivateEndpointConnectionListResult": {
"description": "A list of private endpoint connections",
"type": "object",
Expand All @@ -250,7 +237,7 @@
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
"$ref": "../../common/v1/definitions.json#/definitions/ProxyResource"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "Impersonate your user account"
"user_impersonation": "impersonate your user account"
}
}
},
Expand Down Expand Up @@ -138,7 +138,7 @@
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
"$ref": "../../common/v1/definitions.json#/definitions/ProxyResource"
}
]
},
Expand Down

0 comments on commit 2298361

Please sign in to comment.