From 4a35b74f7b7ba2ef67f63f4c3389fc47a8f4b0e0 Mon Sep 17 00:00:00 2001 From: Yuwei Zhou Date: Thu, 16 Nov 2023 13:26:07 +0800 Subject: [PATCH] fix swagger model validation --- .../stable/2023-12-01/appplatform.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/appplatform.json b/specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/appplatform.json index dad40ce9cf44..22020b8d6c50 100644 --- a/specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/appplatform.json +++ b/specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2023-12-01/appplatform.json @@ -14597,7 +14597,7 @@ "description": "The name of the application accelerator.", "required": true, "type": "string", - "pattern": "^[a-z][a-z0-9]*$", + "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$", "x-ms-parameter-location": "method" }, "CustomizedAcceleratorNameParameter": { @@ -14606,7 +14606,7 @@ "description": "The name of the customized accelerator.", "required": true, "type": "string", - "pattern": "^[a-z][a-z0-9]*$", + "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$", "x-ms-parameter-location": "method" }, "PredefinedAcceleratorNameParameter": { @@ -14615,7 +14615,7 @@ "description": "The name of the predefined accelerator.", "required": true, "type": "string", - "pattern": "^[a-z][a-z0-9]*$", + "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$", "x-ms-parameter-location": "method" } },