From 2298361d55f09088719e353339b9d4a75517a843 Mon Sep 17 00:00:00 2001 From: Shivam Tyagi <56990792+shivamT95-msft@users.noreply.github.com> Date: Mon, 11 Jan 2021 15:41:28 +0530 Subject: [PATCH] Microsoft.Automation swagger linter-check fix for sdk generation (#12333) * 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 --- .../privateEndpointConnection.json | 21 ++++--------------- .../privateLinkResources.json | 4 ++-- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateEndpointConnection.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateEndpointConnection.json index e64fc7f3e707..29c2b9ff3fb3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateEndpointConnection.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateEndpointConnection.json @@ -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" } } }, @@ -154,7 +154,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -198,7 +198,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -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", @@ -250,7 +237,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ] }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateLinkResources.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateLinkResources.json index cb88076c1c14..cb743069fd1e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateLinkResources.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2020-01-13-preview/privateLinkResources.json @@ -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" } } }, @@ -138,7 +138,7 @@ }, "allOf": [ { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ] },