@autorest/java 4.1.21 → 4.1.23

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.
@@ -10,7 +10,7 @@ To set up customizations, create a Maven project with dependency:
10
10
  <dependency>
11
11
  <groupId>com.azure.tools</groupId>
12
12
  <artifactId>azure-autorest-customization</artifactId>
13
- <version>1.0.0-beta.7</version>
13
+ <version>1.0.0-beta.8</version>
14
14
  </dependency>
15
15
  ```
16
16
 
@@ -1,7 +1,3 @@
1
- ### Java Code Formatter
2
-
3
- Formatter depends on a customized [google-java-format](https://github.com/weidongxu-microsoft/google-java-format?organization=weidongxu-microsoft&organization=weidongxu-microsoft), which requires JRE 11.
4
-
5
1
  #### Fluentgen
6
2
 
7
3
  ``` yaml
@@ -62,4 +62,6 @@ client-logger: true
62
62
  generate-client-interfaces: true
63
63
  required-parameter-client-methods: true
64
64
  client-flattened-annotation-target: none
65
+ null-byte-array-maps-to-empty-array: true
66
+ graal-vm-config: true
65
67
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/java",
3
- "version": "4.1.21",
3
+ "version": "4.1.23",
4
4
  "description": "The Java extension for classic generators in AutoRest.",
5
5
  "scripts": {
6
6
  "autorest": "autorest",
package/readme.md CHANGED
@@ -71,7 +71,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
71
71
  |`--generate-client-as-impl`|Append "Impl" to the names of service clients and method groups and place them in the `implementation` sub-package. Default is false.|
72
72
  |`--generate-client-interfaces`|Implies `--generate-client-as-impl` and generates interfaces for all the "Impl"s. Default is false.|
73
73
  |`--generate-sync-async-clients`|Implies `--generate-client-as-impl` and generates sync and async convenience layer clients for all the "Impl"s. Default is false.|
74
- |`--generate-builder-per-client`| Requires `--generate-sync-async-clients`, and generates one ClientBuilder for each Client. Default is false.|
74
+ |`--generate-builder-per-client`|Requires `--generate-sync-async-clients`, and generates one ClientBuilder for each Client. Default is false.|
75
75
  |`--implementation-subpackage=STRING`|The sub-package that the Service client and Method Group client implementation classes will be put into. Default is `implementation`.|
76
76
  |`--models-subpackage=STRING`|The sub-package that Enums, Exceptions, and Model types will be put into. Default is `models`.|
77
77
  |`--sync-methods=all\|essential\|none`|Specifies mode for generating sync wrappers. Supported value are <br>&nbsp;&nbsp;`essential` - generates only one sync returning body or header (default) <br>&nbsp;&nbsp;`all` - generates one sync method for each async method<br>&nbsp;&nbsp;`none` - does not generate any sync methods|
@@ -81,7 +81,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
81
81
  |`--client-type-prefix=STRING`|The prefix that will be added to each generated client type.|
82
82
  |`--service-interface-as-public`|Indicates whether to generate service interfaces as public. This resolves `SecurityManager` issues to prevent reflectively access non-public APIs. Default is true.|
83
83
  |`--require-x-ms-flattened-to-flatten`|Indicates whether `x-ms-flattened` is required to annotated a class with `@JsonFlatten` if the discriminator has `.` in its name. Default is false.|
84
- |`--client-flattened-annotation-target=TYPE,FIELD,NONE`|Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.|
84
+ |`--client-flattened-annotation-target=TYPE,FIELD,NONE,DISABLED`|Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.|
85
85
  |`--disable-client-builder`|Indicates whether to disable generating the `ClientBuilder` class. This is for SDK that already contains a hand-written `ClientBuilder` class. Default is false.|
86
86
  |`--skip-formatting`|Indicates whether to skip formatting Java file. Default is false.|
87
87
  |`--polling`|Configures how to generate long running operations. See [Polling Configuration](#polling-configuration) to see more details on how to use this flag.|
@@ -98,6 +98,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
98
98
  |`--use-input-stream-for-binary`|Indicates that `InputStream` is used for binary response body. By default, `BinaryData` is used.|
99
99
  |`--enable-page-size`|Indicates that `maxpagesize` query parameter be supplied via `byPage` API in `PagedFlux` or `PagedIterable`, instead of via client method parameter.|
100
100
  |`--use-key-credential`|Indicates that builder uses `KeyCredential` for API key.|
101
+ |`--graal-vm-config`|Generates GraalVM config under `resources/META-INF/native-image`.|
101
102
 
102
103
  ## Settings for minimal data-plane clients
103
104
 
@@ -377,7 +378,7 @@ help-content:
377
378
  description: The prefix that will be added to each generated client type.
378
379
  - key: client-flattened-annotation-target
379
380
  type: string
380
- description: \[TYPE,FIELD] Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.
381
+ description: \[TYPE,FIELD,NONE,DISABLED] Indicates the target of `@JsonFlatten` annotation for `x-ms-client-flatten`. Default is `TYPE`. If value is `FIELD`, it implies `require-x-ms-flattened-to-flatten=true`.
381
382
  - key: disable-client-builder
382
383
  type: bool
383
384
  description: Indicates whether to disable generating the `ClientBuilder` class. This is for SDK that already contains a hand-written `ClientBuilder` class. Default is false.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-java",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
5
5
  "keywords": [
6
6
  "TypeSpec"
@@ -45,12 +45,14 @@
45
45
  "target/azure-typespec-extension-jar-with-dependencies.jar"
46
46
  ],
47
47
  "peerDependencies": {
48
- "@typespec/compiler": ">=0.45.0 <1.0.0",
49
- "@typespec/rest": ">=0.45.0 <1.0.0",
50
- "@typespec/openapi": ">=0.45.0 <1.0.0",
51
- "@typespec/versioning": ">=0.45.0 <1.0.0",
52
- "@azure-tools/typespec-azure-core": ">=0.31.0 <1.0.0",
53
- "@azure-tools/typespec-client-generator-core": ">=0.31.0 <1.0.0"
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"
54
56
  },
55
57
  "dependencies": {
56
58
  "@autorest/codemodel": "~4.19.3",
@@ -58,18 +60,18 @@
58
60
  "js-yaml": "~4.1.0"
59
61
  },
60
62
  "devDependencies": {
61
- "@types/lodash": "~4.14.198",
62
- "@types/js-yaml": "~4.0.5",
63
- "@types/mocha": "~10.0.1",
64
- "@types/node": "~20.6.0",
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",
65
67
  "@types/prettier": "~2.7.3",
66
68
  "c8": "~8.0.1",
67
- "eslint": "~8.49.0",
69
+ "eslint": "~8.51.0",
68
70
  "mocha": "~10.2.0",
69
- "rimraf": "~5.0.1",
71
+ "rimraf": "~5.0.5",
70
72
  "typescript": "~5.2.2",
71
- "@typescript-eslint/parser": "~6.7.0",
72
- "@typescript-eslint/eslint-plugin": "~6.7.0",
73
- "eslint-plugin-deprecation": "~1.5.0"
73
+ "@typescript-eslint/parser": "~6.7.5",
74
+ "@typescript-eslint/eslint-plugin": "~6.7.5",
75
+ "eslint-plugin-deprecation": "~2.0.0"
74
76
  }
75
77
  }
@@ -9,23 +9,23 @@
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.48.0 <1.0.0",
13
- "@azure-tools/typespec-autorest": ">=0.34.0 <1.0.0",
14
- "@azure-tools/cadl-ranch-specs": "0.22.0",
15
- "@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.9.0.tgz"
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"
16
16
  },
17
17
  "devDependencies": {
18
- "@typespec/prettier-plugin-typespec": "~0.48.0",
18
+ "@typespec/prettier-plugin-typespec": "~0.49.0",
19
19
  "prettier-plugin-organize-imports": "3.2.3",
20
20
  "prettier": "~3.0.3"
21
21
  },
22
22
  "overrides": {
23
- "@typespec/compiler": ">=0.48.0 <1.0.0",
24
- "@typespec/http": ">=0.48.0 <1.0.0",
25
- "@typespec/rest": ">=0.48.0 <1.0.0",
26
- "@typespec/versioning": ">=0.48.0 <1.0.0",
27
- "@azure-tools/typespec-azure-core": ">=0.34.0 <1.0.0",
28
- "@azure-tools/typespec-client-generator-core": ">=0.34.0 <1.0.0"
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"
29
29
  },
30
30
  "private": true
31
31
  }