Skip to content

Commit

Permalink
mgmt, security PR, improve directive to avoid hardcode the properties (
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Jul 20, 2021
1 parent 36172a1 commit 016699e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions specification/security/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 016699e

Please sign in to comment.