From 24857ddf986c6ca56f602f23a6f3de9c7fdf7ecd Mon Sep 17 00:00:00 2001 From: pratikjoshi14 <59243362+pratikjoshi14@users.noreply.github.com> Date: Wed, 16 Feb 2022 20:34:37 +0530 Subject: [PATCH] Swagger validation fixes --- .../stable/2022-01-01/dataprotection.json | 106 ++++++++++-------- 1 file changed, 62 insertions(+), 44 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-01-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-01-01/dataprotection.json index c3b07ee0dd50..92c6cfcad638 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-01-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-01-01/dataprotection.json @@ -78,13 +78,13 @@ "$ref": "#/parameters/SubscriptionId" }, { - "name": "operationId", + "name": "location", "in": "path", "required": true, "type": "string" }, { - "name": "location", + "name": "operationId", "in": "path", "required": true, "type": "string" @@ -340,13 +340,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" } ], "responses": { @@ -389,13 +389,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "parameters", @@ -451,13 +451,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" } ], "responses": { @@ -497,13 +497,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "parameters", @@ -554,13 +554,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "operationId", @@ -772,13 +772,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" } ], "responses": { @@ -820,13 +820,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupPolicyName", @@ -870,13 +870,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupPolicyName", @@ -929,13 +929,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupPolicyName", @@ -980,13 +980,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" } ], "responses": { @@ -1028,13 +1028,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -1078,13 +1078,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -1157,13 +1157,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -1228,13 +1228,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -1308,13 +1308,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "parameters", @@ -1441,13 +1441,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -1511,13 +1511,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -1645,13 +1645,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -2075,13 +2075,13 @@ "$ref": "#/parameters/ApiVersion" }, { - "$ref": "#/parameters/VaultName" + "$ref": "#/parameters/SubscriptionId" }, { "$ref": "#/parameters/ResourceGroupName" }, { - "$ref": "#/parameters/SubscriptionId" + "$ref": "#/parameters/VaultName" }, { "name": "backupInstanceName", @@ -3569,7 +3569,8 @@ "type": "array", "items": { "$ref": "#/definitions/RestorableTimeRange" - } + }, + "x-ms-identifiers": [] }, "objectType": { "type": "string" @@ -3641,6 +3642,7 @@ "items": { "$ref": "#/definitions/UserFacingError" }, + "x-ms-identifiers": [], "readOnly": true, "type": "array" }, @@ -4039,6 +4041,7 @@ "items": { "$ref": "#/definitions/SourceLifeCycle" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -4212,6 +4215,7 @@ "items": { "$ref": "#/definitions/BasePolicyRule" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -4294,6 +4298,7 @@ "items": { "$ref": "#/definitions/StorageSetting" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -4510,6 +4515,7 @@ "items": { "$ref": "#/definitions/ClientDiscoveryForLogSpecification" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -4528,6 +4534,7 @@ "items": { "$ref": "#/definitions/ClientDiscoveryValueForSingleApi" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -5037,6 +5044,7 @@ "items": { "$ref": "#/definitions/ErrorAdditionalInfo" }, + "x-ms-identifiers": [], "readOnly": true, "type": "array" }, @@ -5050,6 +5058,7 @@ "items": { "$ref": "#/definitions/Error" }, + "x-ms-identifiers": [], "readOnly": true, "type": "array" }, @@ -5176,7 +5185,8 @@ "type": "array", "items": { "$ref": "#/definitions/SupportedFeature" - } + }, + "x-ms-identifiers": [] } }, "x-ms-discriminator-value": "FeatureValidationResponse" @@ -5265,7 +5275,8 @@ "type": "array", "items": { "$ref": "#/definitions/ItemLevelRestoreCriteria" - } + }, + "x-ms-identifiers": [] }, "datasourceInfo": { "$ref": "#/definitions/Datasource", @@ -5318,6 +5329,7 @@ "items": { "$ref": "#/definitions/JobSubTask" }, + "x-ms-identifiers": [], "readOnly": true, "type": "array" }, @@ -5485,7 +5497,8 @@ "type": "array", "items": { "$ref": "#/definitions/DataStoreParameters" - } + }, + "x-ms-identifiers": [] } } }, @@ -5790,6 +5803,7 @@ "items": { "$ref": "#/definitions/Day" }, + "x-ms-identifiers": [], "type": "array" }, "daysOfTheWeek": { @@ -5888,6 +5902,7 @@ "items": { "$ref": "#/definitions/TaggingCriteria" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -5961,6 +5976,7 @@ "items": { "$ref": "#/definitions/TargetCopySetting" }, + "x-ms-identifiers": [], "type": "array" } }, @@ -6062,6 +6078,7 @@ "items": { "$ref": "#/definitions/BackupCriteria" }, + "x-ms-identifiers": [], "type": "array" }, "isDefault": { @@ -6178,6 +6195,7 @@ "items": { "$ref": "#/definitions/UserFacingError" }, + "x-ms-identifiers": [], "type": "array" }, "innerError": {