From 1b21f79ff8fcad50ede39ff50eb9abc1e16427b9 Mon Sep 17 00:00:00 2001 From: gubalasu <59630928+gubalasu@users.noreply.github.com> Date: Tue, 19 Apr 2022 16:43:54 -0700 Subject: [PATCH] Fix more validation errors --- .../Microsoft.Cdn/preview/2022-05-01-preview/cdn.json | 4 ++-- .../examples/Profiles_CanMigrate.json | 4 +++- .../2022-05-01-preview/examples/Profiles_Migrate.json | 10 +++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json index 2e86f85abd23..fe79fe717861 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json @@ -2744,7 +2744,7 @@ "description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.", "type": "object", "properties": { - "errors":{ + "errors": { "items": { "$ref": "#/definitions/MigrationErrorType" }, @@ -2826,7 +2826,7 @@ }, "MigrationWafMapping": { "description": "Waf mapping", - "type":"object", + "type": "object", "properties": { "migratedFrom": { "description": "Migration From Waf policy", diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_CanMigrate.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_CanMigrate.json index a319adf3d781..70ae9c67e84e 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_CanMigrate.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_CanMigrate.json @@ -5,7 +5,9 @@ "resourceGroupName": "RG", "profileName": "profile1", "canMigrateParameters": { - "classicResourceReference": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"} + "classicResourceReference": { + "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname" + } } }, "responses": { diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_Migrate.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_Migrate.json index 72f817278f1e..f0fa199fd9d6 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_Migrate.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/examples/Profiles_Migrate.json @@ -3,16 +3,20 @@ "api-version": "2021-06-01", "subscriptionId": "subid", "resourceGroupName": "RG", - "migrationParameters":{ + "migrationParameters": { "sku": "Standard_AzureFrontDoor", - "classicResourceReference": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"}, + "classicResourceReference": { + "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname" + }, "profileName": "" } }, "responses": { "200": { "body": { - "migratedProfileArmResourceId": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/migratedprofile1"}, + "migratedProfileArmResourceId": { + "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/migratedprofile1" + }, "errors": null } }