Skip to content

Commit 016699e

Browse files
mgmt, security PR, improve directive to avoid hardcode the properties (#15220)
1 parent 36172a1 commit 016699e

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

specification/security/resource-manager/readme.java.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,8 @@ directive:
99
where: $.definitions.ExternalSecuritySolution.allOf[1]
1010
set:
1111
type: object
12-
description: 'Describes an Azure resource with location'
1312
reason: discriminator property is required to be defined in the model
1413
- from: externalSecuritySolutions.json
15-
where: $.definitions.ExternalSecuritySolution.properties
16-
set:
17-
kind:
18-
type: object
19-
description: 'Describes an Azure resource with kind'
20-
enum:
21-
- CEF
22-
- ATA
23-
- AAD
24-
x-ms-enum:
25-
name: ExternalSecuritySolutionKind
26-
modelAsString: true
14+
where: $.definitions
15+
transform: $.ExternalSecuritySolution.properties = $.ExternalSecuritySolutionKind.properties
2716
```

0 commit comments

Comments
 (0)