From 5f25f98e32571f8d2d705c03f67ad051e05ac926 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 14 Jul 2021 16:39:11 +0800 Subject: [PATCH] mgmt, security PR, improve directive to avoid hardcode the properties --- .../security/resource-manager/readme.java.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/specification/security/resource-manager/readme.java.md b/specification/security/resource-manager/readme.java.md index 272ef71be77b..b990427bd4eb 100644 --- a/specification/security/resource-manager/readme.java.md +++ b/specification/security/resource-manager/readme.java.md @@ -9,19 +9,8 @@ directive: where: $.definitions.ExternalSecuritySolution.allOf[1] set: type: object - description: 'Describes an Azure resource with location' reason: discriminator property is required to be defined in the model - from: externalSecuritySolutions.json - where: $.definitions.ExternalSecuritySolution.properties - set: - kind: - type: object - description: 'Describes an Azure resource with kind' - enum: - - CEF - - ATA - - AAD - x-ms-enum: - name: ExternalSecuritySolutionKind - modelAsString: true + where: $.definitions + transform: $.ExternalSecuritySolution.properties = $.ExternalSecuritySolutionKind.properties ```