Skip to content

Commit 6134321

Browse files
mgmt, java, fix invalid swagger (#22204)
1 parent 74b23e2 commit 6134321

File tree

2 files changed

+26
-62
lines changed

2 files changed

+26
-62
lines changed
Lines changed: 21 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,27 @@
11
## Java
22

33
These settings apply only when `--java` is specified on the command line.
4-
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
54

65
``` yaml $(java)
7-
azure-arm: true
8-
fluent: true
9-
namespace: com.microsoft.azure.management.datamigration
10-
license-header: MICROSOFT_MIT_NO_CODEGEN
11-
payload-flattening-threshold: 1
12-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-datamigration
13-
```
14-
15-
### Java multi-api
16-
17-
``` yaml $(java) && $(multiapi)
18-
batch:
19-
- tag: package-2018-07-15-preview
20-
- tag: package-2017-11-15-preview
21-
- tag: package-2018-03-31-preview
22-
```
23-
24-
### Tag: package-2018-07-15-preview and java
25-
26-
These settings apply only when `--tag=package-2018-07-15-preview --java` is specified on the command line.
27-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
28-
29-
``` yaml $(tag) == 'package-2018-07-15-preview' && $(java) && $(multiapi)
30-
java:
31-
namespace: com.microsoft.azure.management.datamigration.v2018_07_15_preview
32-
output-folder: $(azure-libraries-for-java-folder)/sdk/datamigration/mgmt-v2018_07_15_preview
33-
regenerate-manager: true
34-
generate-interface: true
35-
```
36-
37-
### Tag: package-2017-11-15-preview and java
38-
39-
These settings apply only when `--tag=package-2017-11-15-preview --java` is specified on the command line.
40-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
41-
42-
``` yaml $(tag) == 'package-2017-11-15-preview' && $(java) && $(multiapi)
43-
java:
44-
namespace: com.microsoft.azure.management.datamigration.v2017_11_15_preview
45-
output-folder: $(azure-libraries-for-java-folder)/sdk/datamigration/mgmt-v2017_11_15_preview
46-
regenerate-manager: true
47-
generate-interface: true
48-
```
49-
50-
### Tag: package-2018-03-31-preview and java
51-
52-
These settings apply only when `--tag=package-2018-03-31-preview --java` is specified on the command line.
53-
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.
54-
55-
``` yaml $(tag) == 'package-2018-03-31-preview' && $(java) && $(multiapi)
56-
java:
57-
namespace: com.microsoft.azure.management.datamigration.v2018_03_31_preview
58-
output-folder: $(azure-libraries-for-java-folder)/sdk/datamigration/mgmt-v2018_03_31_preview
59-
regenerate-manager: true
60-
generate-interface: true
6+
directive:
7+
- from: swagger-document
8+
where: $.definitions.MigrateMySqlAzureDbForMySqlSyncTaskOutput
9+
transform: >
10+
$['required'] = ['resultType'];
11+
- from: swagger-document
12+
where: $.definitions.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput
13+
transform: >
14+
$['required'] = ['resultType'];
15+
- from: swagger-document
16+
where: $.definitions.MigrateSqlServerSqlDbSyncTaskOutput
17+
transform: >
18+
$['required'] = ['resultType'];
19+
- from: swagger-document
20+
where: $.definitions.MigrateSqlServerSqlMITaskOutput
21+
transform: >
22+
$['required'] = ['resultType'];
23+
- from: swagger-document
24+
where: $.definitions.MigrateSqlServerSqlMISyncTaskOutput
25+
transform: >
26+
$['required'] = ['resultType'];
6127
```

specification/devspaces/resource-manager/readme.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,13 @@ See configuration in [readme.go.md](./readme.go.md)
8181
## Java
8282

8383
These settings apply only when `--java` is specified on the command line.
84-
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.
8584

8685
``` yaml $(java)
87-
azure-arm: true
88-
fluent: true
89-
namespace: com.microsoft.azure.management.devspaces
90-
license-header: MICROSOFT_MIT_NO_CODEGEN
91-
payload-flattening-threshold: 1
92-
output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-devspaces
86+
directive:
87+
- from: swagger-document
88+
where: $.definitions.OrchestratorSpecificConnectionDetails
89+
transform: >
90+
$['required'] = ['instanceType'];
9391
```
9492

9593
### Java multi-api

0 commit comments

Comments
 (0)