From c7ea412f8e224c836e955d4c1568e40d64318187 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 9 Feb 2022 17:08:17 +0800 Subject: [PATCH] mgmt, cdn, directive to fix conflict naming --- specification/cdn/resource-manager/readme.java.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/cdn/resource-manager/readme.java.md b/specification/cdn/resource-manager/readme.java.md index d6d38fa512d1..f9854462e613 100644 --- a/specification/cdn/resource-manager/readme.java.md +++ b/specification/cdn/resource-manager/readme.java.md @@ -10,6 +10,15 @@ namespace: com.microsoft.azure.management.cdn license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-cdn + +directive: + - from: swagger-document + where: $.definitions.DeliveryRuleAction.properties.name + transform: > + $['x-ms-enum'] = { + "name": "DeliveryRuleActionValue", + "modelAsString": true + }; ``` ### Java multi-api