@autorest/java 4.1.23 → 4.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,74 @@
1
1
  #### Androidgen
2
2
 
3
3
  ``` yaml
4
- use:
5
- - $(this-folder)/../preprocessor
6
- - $(this-folder)/../postprocessor
7
-
4
+ pass-thru:
5
+ - model-deduplicator
6
+ - subset-reducer
7
+
8
+ use-extension:
9
+ "@autorest/modelerfour": "4.26.2"
10
+
8
11
  pipeline:
9
12
 
10
13
  # --- extension remodeler ---
14
+
15
+ # "Shake the tree", and normalize the model
16
+ modelerfour:
17
+ input: openapi-document/multi-api/identity # the plugin where we get inputs from
18
+
19
+ # allow developer to do transformations on the code model.
20
+ modelerfour/new-transform:
21
+ input: modelerfour
22
+
11
23
  androidgen:
12
24
  scope: android
13
- input: preprocessor
14
- output-artifact: java-files
15
-
16
- postprocessor:
17
- input: androidgen
25
+ input: modelerfour/identity
18
26
  output-artifact: java-files
19
27
 
20
- postprocess/emitter:
21
- input: postprocessor
22
- scope: scope-javagen/emitter
23
-
24
- scope-javagen/emitter:
28
+ androidgen/emitter:
29
+ input: androidgen
30
+ scope: scope-androidgen/emitter
31
+
32
+ scope-androidgen/emitter:
25
33
  input-artifact: java-files
26
34
  output-uri-expr: $key
27
35
 
28
36
  output-artifact: java-files
29
37
 
30
- ```
38
+ modelerfour:
39
+ seal-single-value-enum-by-default: true
40
+
41
+ skip-special-headers:
42
+ - Repeatability-Request-ID
43
+ - Repeatability-First-Sent
44
+ ```
45
+
46
+ ```yaml !$(data-plane)
47
+ modelerfour:
48
+ flatten-models: true
49
+ flatten-payloads: true
50
+ group-parameters: true
51
+ ```
52
+
53
+ ```yaml $(data-plane)
54
+ modelerfour:
55
+ flatten-models: false
56
+ flatten-payloads: false
57
+ group-parameters: false
58
+
59
+ lenient-model-deduplication: true
60
+
61
+ naming:
62
+ choiceValue: upper
63
+ preserve-uppercase-max-length: 2
64
+ override:
65
+ ip: Ip
66
+ id: Id
67
+
68
+ require:
69
+ - $(this-folder)data-plane.md
70
+ ```
71
+
72
+ ```yaml $(data-plane) && $(sdk-integration)
73
+ regenerate-pom: true
74
+ ```
@@ -4,8 +4,8 @@
4
4
  "description": "The Java extension for classic generators in AutoRest.",
5
5
  "scripts": {
6
6
  "autorest": "autorest",
7
- "start": "java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
8
- "debug": "java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
7
+ "start": "java -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
8
+ "debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentgen-jar-with-dependencies.jar",
9
9
  "build": "mvn package -P local"
10
10
  },
11
11
  "repository": {
@@ -1,12 +1,41 @@
1
1
  #### Fluentgen
2
2
 
3
3
  ``` yaml
4
- use: $(this-folder)/../fluentnamer
4
+ pass-thru:
5
+ - model-deduplicator
6
+ - subset-reducer
7
+
8
+ use-extension:
9
+ "@autorest/modelerfour": "4.26.2"
10
+
5
11
  pipeline:
6
12
 
13
+ # --- extension remodeler ---
14
+
15
+ # "Shake the tree", and normalize the model
16
+ modelerfour:
17
+ input: openapi-document/multi-api/identity # the plugin where we get inputs from
18
+
19
+ # allow developer to do transformations on the code model.
20
+ modelerfour/new-transform:
21
+ input: modelerfour
22
+
7
23
  fluentgen:
8
24
  scope: java
9
- input: fluentnamer
25
+ input: modelerfour/identity
26
+ naming:
27
+ override:
28
+ eTag: etag
29
+ userName: username
30
+ metaData: metadata
31
+ timeStamp: timestamp
32
+ hostName: hostname
33
+ webHook: webhook
34
+ coolDown: cooldown
35
+ resourceregion: resourceRegion
36
+ sTag: stag
37
+ tagname: tagName
38
+ tagvalue: tagValue
10
39
  output-artifact: java-files
11
40
 
12
41
  fluentgen/emitter:
@@ -18,4 +47,33 @@ scope-fluentgen/emitter:
18
47
  output-uri-expr: $key
19
48
 
20
49
  output-artifact: java-files
50
+
51
+ modelerfour:
52
+ flatten-models: false
53
+ flatten-payloads: false
54
+
55
+ additional-checks: true
56
+ lenient-model-deduplication: false
57
+ remove-empty-child-schemas: false
58
+ seal-single-value-enum-by-default: true
59
+
60
+ naming:
61
+ choiceValue: upper
62
+ preserve-uppercase-max-length: 2
63
+ override:
64
+ ip: Ip
65
+ id: Id
66
+
67
+ include-x-ms-examples-original-file: true
68
+
69
+ license-header: MICROSOFT_MIT_SMALL
70
+ regenerate-pom: true
71
+ sync-methods: all
72
+ client-side-validations: true
73
+ client-logger: true
74
+ generate-client-interfaces: true
75
+ required-parameter-client-methods: true
76
+ client-flattened-annotation-target: none
77
+ null-byte-array-maps-to-empty-array: true
78
+ graal-vm-config: true
21
79
  ```
@@ -0,0 +1,23 @@
1
+ #### data-plane
2
+
3
+ ```yaml
4
+ azure-arm: false
5
+
6
+ license-header: MICROSOFT_MIT_SMALL
7
+
8
+ generate-client-interfaces: false
9
+ generate-client-as-impl: true
10
+ generate-sync-async-clients: true
11
+ generate-builder-per-client: true
12
+ sync-methods: all
13
+ enable-sync-stack: true
14
+ required-fields-as-ctor-args: true
15
+ enable-page-size: true
16
+ use-key-credential: true
17
+
18
+ use-default-http-status-code-to-exception-type-mapping: true
19
+ polling: {}
20
+
21
+ models-subpackage: implementation.models
22
+ client-logger: true
23
+ ```
package/javagen/readme.md CHANGED
@@ -1,24 +1,32 @@
1
1
  #### Javagen
2
2
 
3
3
  ``` yaml
4
- use:
5
- - $(this-folder)/../preprocessor
6
- - $(this-folder)/../postprocessor
4
+ pass-thru:
5
+ - model-deduplicator
6
+ - subset-reducer
7
+
8
+ use-extension:
9
+ "@autorest/modelerfour": "4.26.2"
7
10
 
8
11
  pipeline:
9
12
 
10
13
  # --- extension remodeler ---
14
+
15
+ # "Shake the tree", and normalize the model
16
+ modelerfour:
17
+ input: openapi-document/multi-api/identity # the plugin where we get inputs from
18
+
19
+ # allow developer to do transformations on the code model.
20
+ modelerfour/new-transform:
21
+ input: modelerfour
22
+
11
23
  javagen:
12
24
  scope: java
13
- input: preprocessor
25
+ input: modelerfour/identity
14
26
  output-artifact: java-files
15
27
 
16
- postprocessor:
28
+ javagen/emitter:
17
29
  input: javagen
18
- output-artifact: java-files
19
-
20
- postprocess/emitter:
21
- input: postprocessor
22
30
  scope: scope-javagen/emitter
23
31
 
24
32
  scope-javagen/emitter:
@@ -26,4 +34,41 @@ scope-javagen/emitter:
26
34
  output-uri-expr: $key
27
35
 
28
36
  output-artifact: java-files
37
+
38
+ modelerfour:
39
+ seal-single-value-enum-by-default: true
40
+
41
+ skip-special-headers:
42
+ - Repeatability-Request-ID
43
+ - Repeatability-First-Sent
44
+ ```
45
+
46
+ ```yaml !$(data-plane)
47
+ modelerfour:
48
+ flatten-models: true
49
+ flatten-payloads: true
50
+ group-parameters: true
51
+ ```
52
+
53
+ ```yaml $(data-plane)
54
+ modelerfour:
55
+ flatten-models: false
56
+ flatten-payloads: false
57
+ group-parameters: false
58
+
59
+ lenient-model-deduplication: true
60
+
61
+ naming:
62
+ choiceValue: upper
63
+ preserve-uppercase-max-length: 2
64
+ override:
65
+ ip: Ip
66
+ id: Id
67
+
68
+ require:
69
+ - $(this-folder)data-plane.md
70
+ ```
71
+
72
+ ```yaml $(data-plane) && $(sdk-integration)
73
+ regenerate-pom: true
29
74
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/java",
3
- "version": "4.1.23",
3
+ "version": "4.1.25",
4
4
  "description": "The Java extension for classic generators in AutoRest.",
5
5
  "scripts": {
6
6
  "autorest": "autorest",
package/readme.md CHANGED
@@ -152,6 +152,7 @@ Polling configurations can be set through `--polling` setting globally or for ea
152
152
  polling:
153
153
  {operationId}:
154
154
  strategy: {strategy}
155
+ sync-strategy: {sync-strategy}
155
156
  intermediate-type: {intermediate-type}
156
157
  final-type: {final-type}
157
158
  poll-interval: {poll-interval}
@@ -162,7 +163,8 @@ With the fields specified below:
162
163
  |Field|Type|Required|Description|Example|
163
164
  |-----|----|--------|-----------|-------|
164
165
  |operationId|String|true|The `operationId` of the operation. For global polling configuration, use `default`. Case insensitive.|`Pets_put`|
165
- |strategy|String|false|The invocation to construct a polling strategy. Use fully qualified class name if outside the implementation subpackage specified in `namespace` & `implementation-subpackage`. Use dynamic literals `{httpPipeline}`, `{context}`, `{serializerAdapter}`, `{intermediate-type}`, `{final-type}` if these components are required to construct the polling strategy. Default is `new DefaultPollingStrategy<>(new PollingStrategyOptions({httpPipeline}).setEndpoint({endpoint}).setContext({context}))`.|`new com.azure.core.util.polling.OperationResourcePollingStrategy<>({httpPipeline}, {context})`|
166
+ |strategy|String|false|The invocation to construct a polling strategy. Use fully qualified class name if outside the implementation subpackage specified in `namespace` & `implementation-subpackage`. Use dynamic literals `{httpPipeline}`, `{context}`, `{serializerAdapter}`, `{endpoint}`, `{serviceVersion}`, `{intermediate-type}`, `{final-type}` if these components are required to construct the polling strategy. Default is `new DefaultPollingStrategy<>(new PollingStrategyOptions({httpPipeline}).setEndpoint({endpoint}).setContext({context}).setServiceVersion({serviceVersion}))`.|`new com.azure.core.util.polling.OperationResourcePollingStrategy<>({httpPipeline}, {context})`|
167
+ |sync-stragety|String|false|Similar to `stragety`. It refers to the synchronous operation resource polling strategy.||
166
168
  |intermediate-type|String|false|The type of the polling intermediate type. Use fully qualified class name if outside the base package specified in `namespace`. Default is the return type specified on the operation in Swagger, or `BinaryData` if the operation returns `void`.|`PollResult`,`com.azure.core.util.BinaryData`|
167
169
  |final-type|String|false|The type of the final result type. Use fully qualified class name if outside the base package specified in `namespace`. Default is the return type specified on the operation in Swagger, or `BinaryData` if the operation returns `void`.|`Pet`,`com.azure.core.util.BinaryData`|
168
170
  |poll-interval|integer|false|The default interval in seconds to poll with (can be modified by users in `PollerFlux` and `SyncPoller`. Default is 1.|30|
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-java",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
5
5
  "keywords": [
6
6
  "TypeSpec"
@@ -45,33 +45,31 @@
45
45
  "target/azure-typespec-extension-jar-with-dependencies.jar"
46
46
  ],
47
47
  "peerDependencies": {
48
- "@typespec/compiler": ">=0.49.0 <1.0.0",
49
- "@typespec/rest": ">=0.49.0 <1.0.0",
50
- "@typespec/openapi": ">=0.49.0 <1.0.0",
51
- "@typespec/versioning": ">=0.49.0 <1.0.0",
52
- "@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0",
53
- "@azure-tools/typespec-providerhub": ">=0.35.0 <1.0.0",
54
- "@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0",
55
- "@azure-tools/typespec-azure-resource-manager": ">=0.35.0 <1.0.0"
48
+ "@typespec/compiler": ">=0.50.0 <1.0.0",
49
+ "@typespec/rest": ">=0.50.0 <1.0.0",
50
+ "@typespec/openapi": ">=0.50.0 <1.0.0",
51
+ "@typespec/versioning": ">=0.50.0 <1.0.0",
52
+ "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0",
53
+ "@azure-tools/typespec-client-generator-core": ">=0.36.1 <1.0.0"
56
54
  },
57
55
  "dependencies": {
58
- "@autorest/codemodel": "~4.19.3",
56
+ "@autorest/codemodel": "~4.20.0",
59
57
  "lodash": "~4.17.21",
60
58
  "js-yaml": "~4.1.0"
61
59
  },
62
60
  "devDependencies": {
63
- "@types/lodash": "~4.14.199",
64
- "@types/js-yaml": "~4.0.7",
65
- "@types/mocha": "~10.0.2",
66
- "@types/node": "~20.8.4",
67
- "@types/prettier": "~2.7.3",
61
+ "prettier": "~3.1.0",
62
+ "@types/lodash": "~4.14.202",
63
+ "@types/js-yaml": "~4.0.9",
64
+ "@types/mocha": "~10.0.6",
65
+ "@types/node": "~20.10.0",
68
66
  "c8": "~8.0.1",
69
- "eslint": "~8.51.0",
67
+ "eslint": "~8.54.0",
70
68
  "mocha": "~10.2.0",
71
69
  "rimraf": "~5.0.5",
72
- "typescript": "~5.2.2",
73
- "@typescript-eslint/parser": "~6.7.5",
74
- "@typescript-eslint/eslint-plugin": "~6.7.5",
70
+ "typescript": "~5.3.2",
71
+ "@typescript-eslint/parser": "~6.12.0",
72
+ "@typescript-eslint/eslint-plugin": "~6.12.0",
75
73
  "eslint-plugin-deprecation": "~2.0.0"
76
74
  }
77
75
  }
@@ -54,13 +54,15 @@ options:
54
54
  emitter-output-dir: "{project-root}/azure-ai-language-authoring"
55
55
  namespace: "com.azure.ai.language.authoring"
56
56
  service-name: "Authoring"
57
- partial-update: false
58
57
  service-versions:
59
58
  - "2022-05-15-preview"
60
- namer: false
59
+ enable-sync-stack: true
60
+ stream-style-serialization: false
61
61
  generate-samples: true
62
62
  generate-tests: true
63
63
  examples-directory: "./examples"
64
+ namer: false
65
+ partial-update: false
64
66
  custom-types-subpackage: "implementation.models"
65
67
  custom-types: InternalModel1,InternalModel2
66
68
  ```
@@ -131,10 +133,8 @@ emit:
131
133
  options:
132
134
  "@azure-tools/typespec-java":
133
135
  emitter-output-dir: "{project-root}/tsp-output"
134
- partial-update: true
135
- namer: true
136
+ namespace: "com.azure.ai.language.authoring"
136
137
  dev-options:
137
- support-versioning: true
138
138
  debug: true
139
139
  ```
140
140
 
@@ -9,23 +9,24 @@
9
9
  "testserver-run": "npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http --coverageFile ./cadl-ranch-coverage-java.json"
10
10
  },
11
11
  "dependencies": {
12
- "@typespec/openapi": ">=0.49.0 <1.0.0",
13
- "@azure-tools/typespec-autorest": ">=0.35.0 <1.0.0",
14
- "@azure-tools/cadl-ranch-specs": "0.24.0",
15
- "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.10.0.tgz"
12
+ "@typespec/openapi": ">=0.50.0 <1.0.0",
13
+ "@azure-tools/typespec-autorest": ">=0.36.1 <1.0.0",
14
+ "@azure-tools/cadl-ranch-specs": "0.27.1",
15
+ "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.12.0.tgz"
16
16
  },
17
17
  "devDependencies": {
18
- "@typespec/prettier-plugin-typespec": "~0.49.0",
19
- "prettier-plugin-organize-imports": "3.2.3",
20
- "prettier": "~3.0.3"
18
+ "@typespec/prettier-plugin-typespec": "~0.50.0",
19
+ "prettier-plugin-organize-imports": "3.2.4",
20
+ "prettier": "~3.1.0"
21
21
  },
22
22
  "overrides": {
23
- "@typespec/compiler": ">=0.49.0 <1.0.0",
24
- "@typespec/http": ">=0.49.0 <1.0.0",
25
- "@typespec/rest": ">=0.49.0 <1.0.0",
26
- "@typespec/versioning": ">=0.49.0 <1.0.0",
27
- "@azure-tools/typespec-azure-core": ">=0.35.0 <1.0.0",
28
- "@azure-tools/typespec-client-generator-core": ">=0.35.0 <1.0.0"
23
+ "@typespec/compiler": ">=0.50.0 <1.0.0",
24
+ "@typespec/http": ">=0.50.0 <1.0.0",
25
+ "@typespec/rest": ">=0.50.0 <1.0.0",
26
+ "@typespec/versioning": ">=0.50.0 <1.0.0",
27
+ "@typespec/openapi": ">=0.50.0 <1.0.0",
28
+ "@azure-tools/typespec-azure-core": ">=0.36.0 <1.0.0",
29
+ "@azure-tools/typespec-client-generator-core": ">=0.36.0 <1.0.0"
29
30
  },
30
31
  "private": true
31
32
  }
@@ -8,23 +8,35 @@ Install Node.js and [TypeSpec](https://github.com/microsoft/typespec/).
8
8
  npm install -g @typespec/compiler
9
9
  ```
10
10
 
11
- ## Build JAR
11
+ ## Build JAR, Build and Install TypeSpec-Java
12
12
 
13
- `mvn package -P local,tsp` in project root.
13
+ `pwsh Setup.ps1 -RebuildJar` in `./typespec-tests` folder.
14
14
 
15
- This will build `./typespec-extension`, which is basically `preprocessor` and `javagen` combined.
15
+ It builds JAR and makes the npm package in `./typespec-extension`, then install it to `./typespec-tests` folder.
16
16
 
17
- ## Build and Install TypeSpec-Java
17
+ ## Generate Code
18
18
 
19
- `pwsh Setup.ps1` in `./typespec-tests` folder.
19
+ `pwsh Generate.ps1` in `./typespec-tests` folder.
20
20
 
21
- It makes the npm package in `./typespec-extension`, then install it to `./typespec-tests` folder.
21
+ It takes time.
22
22
 
23
- ## Generate Code
23
+ The existing code is already in sync. Run this if you have changed the code of TypeSpec-Java.
24
+
25
+ ## Run Test
26
+
27
+ Start Cadl-Ranch
28
+
29
+ `npm run testserver-run`
30
+
31
+ Then, run the tests in `typespec-tests` module as usual Java Tests.
32
+
33
+ ## Generate Code for TypeSpec Source
24
34
 
25
35
  `tsp compile <target.tsp>` in `./typespec-tests` folder.
26
36
 
27
- Generated code will be at `./typespec-tests/tsp-output/` folder.
37
+ This is usually to do a quick check whether the modified TypeSpec-Java works as expected.
38
+
39
+ Generated code will be at `./typespec-tests/tsp-output/` folder for inspect.
28
40
 
29
41
  ## Troubleshooting
30
42
 
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@autorest/java.fluentnamer",
3
- "version": "4.0.0",
4
- "description": "The Java extension for fluentnamer in AutoRest.",
5
- "scripts": {
6
- "autorest": "autorest",
7
- "start": "java -jar target/azure-autorest-fluentnamer-jar-with-dependencies.jar",
8
- "debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-fluentnamer-jar-with-dependencies.jar",
9
- "build": "mvn package -P local"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Azure/autorest.java"
14
- },
15
- "readme": "./readme.md",
16
- "keywords": [
17
- "autorest",
18
- "java"
19
- ],
20
- "author": "Microsoft Corporation",
21
- "license": "MIT",
22
- "bugs": {
23
- "url": "https://github.com/Azure/autorest.java/issues"
24
- },
25
- "homepage": "https://github.com/Azure/autorest.java/blob/main/README.md"
26
- }
@@ -1,67 +0,0 @@
1
- #### Fluentnamer
2
-
3
- ``` yaml
4
- pass-thru:
5
- - model-deduplicator
6
- - subset-reducer
7
-
8
- use-extension:
9
- "@autorest/modelerfour": "4.26.2"
10
-
11
- pipeline:
12
-
13
- # --- extension remodeler ---
14
-
15
- # "Shake the tree", and normalize the model
16
- modelerfour:
17
- input: openapi-document/multi-api/identity # the plugin where we get inputs from
18
-
19
- # allow developer to do transformations on the code model.
20
- modelerfour/new-transform:
21
- input: modelerfour
22
-
23
- fluentnamer:
24
- input: modelerfour/identity
25
- naming:
26
- override:
27
- eTag: etag
28
- userName: username
29
- metaData: metadata
30
- timeStamp: timestamp
31
- hostName: hostname
32
- webHook: webhook
33
- coolDown: cooldown
34
- resourceregion: resourceRegion
35
- sTag: stag
36
- tagname: tagName
37
- tagvalue: tagValue
38
-
39
- modelerfour:
40
- flatten-models: false
41
- flatten-payloads: false
42
-
43
- additional-checks: true
44
- lenient-model-deduplication: false
45
- remove-empty-child-schemas: false
46
- seal-single-value-enum-by-default: true
47
-
48
- naming:
49
- choiceValue: upper
50
- preserve-uppercase-max-length: 2
51
- override:
52
- ip: Ip
53
- id: Id
54
-
55
- include-x-ms-examples-original-file: true
56
-
57
- license-header: MICROSOFT_MIT_SMALL
58
- regenerate-pom: true
59
- sync-methods: all
60
- client-side-validations: true
61
- client-logger: true
62
- generate-client-interfaces: true
63
- required-parameter-client-methods: true
64
- client-flattened-annotation-target: none
65
- null-byte-array-maps-to-empty-array: true
66
- graal-vm-config: true
67
- ```
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@autorest/java.postprocessor",
3
- "version": "4.0.0",
4
- "description": "The Java extension for postprocessor in AutoRest.",
5
- "scripts": {
6
- "autorest": "autorest",
7
- "start": "java -jar target/azure-autorest-postprocessor-jar-with-dependencies.jar",
8
- "debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-postprocessor-jar-with-dependencies.jar",
9
- "build": "mvn package -Dlocal"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Azure/autorest.java"
14
- },
15
- "readme": "./readme.md",
16
- "keywords": [
17
- "autorest",
18
- "java"
19
- ],
20
- "author": "Microsoft Corporation",
21
- "license": "MIT",
22
- "bugs": {
23
- "url": "https://github.com/Azure/autorest/issues"
24
- },
25
- "homepage": "https://github.com/Azure/autorest.java/blob/main/README.md"
26
- }
@@ -1,9 +0,0 @@
1
- #### Postprocessor
2
-
3
- ``` yaml
4
- pipeline:
5
-
6
- # --- extension remodeler ---
7
- postprocessor:
8
- input: java-files
9
- ```
@@ -1,26 +0,0 @@
1
- {
2
- "name": "@autorest/java.preprocessor",
3
- "version": "4.0.0",
4
- "description": "The Java extension for preprocessor in AutoRest.",
5
- "scripts": {
6
- "autorest": "autorest",
7
- "start": "java -jar target/azure-autorest-preprocessor-jar-with-dependencies.jar",
8
- "debug": "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,quiet=y,address=5005 -jar target/azure-autorest-preprocessor-jar-with-dependencies.jar",
9
- "build": "mvn package -Dlocal"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Azure/autorest.java"
14
- },
15
- "readme": "./readme.md",
16
- "keywords": [
17
- "autorest",
18
- "java"
19
- ],
20
- "author": "Microsoft Corporation",
21
- "license": "MIT",
22
- "bugs": {
23
- "url": "https://github.com/Azure/autorest/issues"
24
- },
25
- "homepage": "https://github.com/Azure/autorest.java/blob/main/README.md"
26
- }
@@ -1,62 +0,0 @@
1
- #### Preprocessor
2
-
3
- ``` yaml
4
- pass-thru:
5
- - model-deduplicator
6
- - subset-reducer
7
-
8
- use-extension:
9
- "@autorest/modelerfour": "4.26.2"
10
-
11
- pipeline:
12
-
13
- # --- extension remodeler ---
14
-
15
- # "Shake the tree", and normalize the model
16
- modelerfour:
17
- input: openapi-document/multi-api/identity # the plugin where we get inputs from
18
-
19
- # allow developer to do transformations on the code model.
20
- modelerfour/new-transform:
21
- input: modelerfour
22
-
23
- preprocessor:
24
- input: modelerfour/identity
25
-
26
- modelerfour:
27
- seal-single-value-enum-by-default: true
28
-
29
- skip-special-headers:
30
- - Repeatability-Request-ID
31
- - Repeatability-First-Sent
32
- ```
33
-
34
- ```yaml !$(data-plane)
35
- modelerfour:
36
- flatten-models: true
37
- flatten-payloads: true
38
- group-parameters: true
39
- ```
40
-
41
- ```yaml $(data-plane)
42
- modelerfour:
43
- flatten-models: false
44
- flatten-payloads: false
45
- group-parameters: false
46
-
47
- lenient-model-deduplication: true
48
-
49
- naming:
50
- choiceValue: upper
51
- preserve-uppercase-max-length: 2
52
- override:
53
- ip: Ip
54
- id: Id
55
-
56
- require:
57
- - $(this-folder)data-plane.md
58
- ```
59
-
60
- ```yaml $(data-plane) && $(sdk-integration)
61
- regenerate-pom: true
62
- ```
File without changes