From ff09c64d73ff4f0c51db3a4bd4bf943cba3650e5 Mon Sep 17 00:00:00 2001 From: Alexander Zaslonov Date: Tue, 22 Feb 2022 13:22:57 -0800 Subject: [PATCH] Adjusted reportUri property type in CSP config contract. --- .../preview/2021-12-01-preview/definitions.json | 7 +++++-- .../examples/ApiManagementListPortalConfig.json | 4 +++- .../examples/ApiManagementPortalConfig.json | 4 +++- .../examples/ApiManagementUpdatePortalConfig.json | 8 ++++++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/definitions.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/definitions.json index 1e9dc4d54474..423a80f55a76 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/definitions.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/definitions.json @@ -4172,8 +4172,11 @@ } }, "reportUri": { - "type": "string", - "description": "The URL used by the browser to report CSP violations." + "type": "array", + "items": { + "type": "string" + }, + "description": "The URLs used by the browser to report CSP violations." }, "allowedSources": { "type": "array", diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementListPortalConfig.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementListPortalConfig.json index 4de1e054f853..09601f967552 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementListPortalConfig.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementListPortalConfig.json @@ -32,7 +32,9 @@ }, "csp": { "mode": "reportOnly", - "reportUri": "https://report.contoso.com", + "reportUri": [ + "https://report.contoso.com" + ], "allowedSources": [ "*.contoso.com" ] diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementPortalConfig.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementPortalConfig.json index 4fcefe273848..29276bafac20 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementPortalConfig.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementPortalConfig.json @@ -31,7 +31,9 @@ }, "csp": { "mode": "reportOnly", - "reportUri": "https://report.contoso.com", + "reportUri": [ + "https://report.contoso.com" + ], "allowedSources": [ "*.contoso.com" ] diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementUpdatePortalConfig.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementUpdatePortalConfig.json index fd3f4d0c7c6e..942f3e968449 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementUpdatePortalConfig.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-12-01-preview/examples/ApiManagementUpdatePortalConfig.json @@ -26,7 +26,9 @@ }, "csp": { "mode": "reportOnly", - "reportUri": "https://report.contoso.com", + "reportUri": [ + "https://report.contoso.com" + ], "allowedSources": [ "*.contoso.com" ] @@ -64,7 +66,9 @@ }, "csp": { "mode": "reportOnly", - "reportUri": "https://report.contoso.com", + "reportUri": [ + "https://report.contoso.com" + ], "allowedSources": [ "*.contoso.com" ]