Skip to content

Commit 3e6ca59

Browse files
authored
add java directive to security insight (#17295)
1 parent e1b3893 commit 3e6ca59

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Java
2+
3+
These settings apply only when `--java` is specified on the command line.
4+
5+
6+
``` yaml $(java)
7+
directive:
8+
- from: ThreatIntelligence.json
9+
where: $.definitions.ThreatIntelligenceInformation.allOf[1]
10+
set:
11+
type: object
12+
reason: discriminator property is required to be defined in the model
13+
- from: ThreatIntelligence.json
14+
where: $.definitions
15+
transform: $.ThreatIntelligenceInformation.properties = $.ThreatIntelligenceResourceKind.properties
16+
```

specification/securityinsights/resource-manager/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ swagger-to-sdk:
154154
- repo: azure-sdk-for-python-track2
155155
- repo: azure-sdk-for-js
156156
- repo: azure-sdk-for-node
157+
- repo: azure-sdk-for-java
157158
- repo: azure-cli-extensions
158159
- repo: azure-resource-manager-schemas
159160
```
@@ -188,3 +189,7 @@ See configuration in [readme.nodejs.md](./readme.nodejs.md)
188189
## TypeScript
189190

190191
See configuration in [readme.typescript.md](./readme.typescript.md)
192+
193+
## Java
194+
195+
See configuration in [readme.java.md](./readme.java.md)

0 commit comments

Comments
 (0)