@autorest/java 4.1.33 → 4.1.35
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.
- package/androidgen/target/azure-autorest-androidgen-jar-with-dependencies.jar +0 -0
- package/fluentgen/target/azure-autorest-fluentgen-jar-with-dependencies.jar +0 -0
- package/javagen/target/azure-autorest-javagen-jar-with-dependencies.jar +0 -0
- package/package.json +1 -1
- package/readme.md +2 -0
- package/typespec-extension/package.json +34 -34
- package/typespec-tests/package.json +15 -15
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -51,6 +51,7 @@ To debug, add `--java.debugger` to the argument list. The JVM will suspend at th
|
|
|
51
51
|
|
|
52
52
|
- `use-default-http-status-code-to-exception-type-mapping: true`, use subclass of `HttpResponseException` defined in azure-core, when service returns unexpected status code.
|
|
53
53
|
- `generic-response-type: true`, use `ResponseBase<>`, instead a subclass of `ResponseBase<>`, for response with HTTP headers. Performance and reflective access improvement.
|
|
54
|
+
- `no-custom-headers: true`, generates overloads of interface methods that exclude typed headers. Performance improvement by removing the need to convert header strings to Java types.
|
|
54
55
|
- `required-fields-as-ctor-args`, create a constructor taking required properties, for model classes. The correctness of this constructor highly depends on the correctness of Swagger.
|
|
55
56
|
- `output-model-immutable: true`, make model classes immutable, if model is used only in response.
|
|
56
57
|
- `enable-sync-stack: true`, let sync method invoke sync RestProxy method.
|
|
@@ -88,6 +89,7 @@ Settings can be provided on the command line through `--name:value` or in a READ
|
|
|
88
89
|
|`--use-default-http-status-code-to-exception-type-mapping`|Indicates whether a default HTTP status code to exception mapping should be used if one isn't provided.|
|
|
89
90
|
|`--http-status-code-to-exception-type-mapping`|The HTTP status code to exception mapping that should be used. All exception types must be fully-qualified and extend from `HttpResponseException`.|
|
|
90
91
|
|`--generic-response-type`|Indicates that generic response types are used instead of named response types that extend the generic type.|
|
|
92
|
+
|`--no-custom-headers`|Indicates that overloads of interface methods that exclude typed headers are generated.|
|
|
91
93
|
|`--enable-sync-stack`|Indicates that sync method invokes sync RestProxy method. By default, sync method invokes async RestProxy method.|
|
|
92
94
|
|`--required-fields-as-ctor-args`|Indicates that class models have constructor taking required properties.|
|
|
93
95
|
|`--output-model-immutable`|Indicates that output-only models be generated as immutable, and without public constructor.|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeSpec"
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"target/emitter.jar"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
49
|
-
"@azure-tools/typespec-azure-resource-manager": ">=0.
|
|
50
|
-
"@azure-tools/typespec-autorest": ">=0.
|
|
51
|
-
"@azure-tools/typespec-azure-rulesets": ">=0.
|
|
52
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
53
|
-
"@typespec/compiler": ">=0.
|
|
54
|
-
"@typespec/http": ">=0.
|
|
55
|
-
"@typespec/openapi": ">=0.
|
|
56
|
-
"@typespec/rest": ">=0.
|
|
57
|
-
"@typespec/versioning": ">=0.
|
|
58
|
-
"@typespec/xml": ">=0.
|
|
48
|
+
"@azure-tools/typespec-azure-core": ">=0.44.0 <1.0.0",
|
|
49
|
+
"@azure-tools/typespec-azure-resource-manager": ">=0.44.0 <1.0.0",
|
|
50
|
+
"@azure-tools/typespec-autorest": ">=0.44.1 <1.0.0",
|
|
51
|
+
"@azure-tools/typespec-azure-rulesets": ">=0.44.0 <1.0.0",
|
|
52
|
+
"@azure-tools/typespec-client-generator-core": ">=0.44.3 <1.0.0",
|
|
53
|
+
"@typespec/compiler": ">=0.58.0 <1.0.0",
|
|
54
|
+
"@typespec/http": ">=0.58.0 <1.0.0",
|
|
55
|
+
"@typespec/openapi": ">=0.58.0 <1.0.0",
|
|
56
|
+
"@typespec/rest": ">=0.58.0 <1.0.0",
|
|
57
|
+
"@typespec/versioning": ">=0.58.0 <1.0.0",
|
|
58
|
+
"@typespec/xml": ">=0.58.0 <1.0.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@autorest/codemodel": "~4.20.0",
|
|
@@ -63,29 +63,29 @@
|
|
|
63
63
|
"lodash": "~4.17.21"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@azure-tools/typespec-azure-core": "0.
|
|
67
|
-
"@azure-tools/typespec-azure-resource-manager": "0.
|
|
68
|
-
"@azure-tools/typespec-autorest": "0.
|
|
69
|
-
"@azure-tools/typespec-azure-rulesets": "0.
|
|
70
|
-
"@azure-tools/typespec-client-generator-core": "0.
|
|
66
|
+
"@azure-tools/typespec-azure-core": "0.44.0",
|
|
67
|
+
"@azure-tools/typespec-azure-resource-manager": "0.44.0",
|
|
68
|
+
"@azure-tools/typespec-autorest": "0.44.1",
|
|
69
|
+
"@azure-tools/typespec-azure-rulesets": "0.44.0",
|
|
70
|
+
"@azure-tools/typespec-client-generator-core": "0.44.3",
|
|
71
71
|
"@types/js-yaml": "~4.0.9",
|
|
72
|
-
"@types/lodash": "~4.17.
|
|
73
|
-
"@types/mocha": "~10.0.
|
|
74
|
-
"@types/node": "~20.
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "~7.
|
|
76
|
-
"@typescript-eslint/parser": "~7.
|
|
77
|
-
"@typespec/compiler": "0.
|
|
78
|
-
"@typespec/http": "0.
|
|
79
|
-
"@typespec/openapi": "0.
|
|
80
|
-
"@typespec/rest": "0.
|
|
81
|
-
"@typespec/versioning": "0.
|
|
82
|
-
"@typespec/xml": "0.
|
|
83
|
-
"c8": "~
|
|
72
|
+
"@types/lodash": "~4.17.7",
|
|
73
|
+
"@types/mocha": "~10.0.7",
|
|
74
|
+
"@types/node": "~20.14.11",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "~7.16.1",
|
|
76
|
+
"@typescript-eslint/parser": "~7.16.1",
|
|
77
|
+
"@typespec/compiler": "0.58.0",
|
|
78
|
+
"@typespec/http": "0.58.0",
|
|
79
|
+
"@typespec/openapi": "0.58.0",
|
|
80
|
+
"@typespec/rest": "0.58.0",
|
|
81
|
+
"@typespec/versioning": "0.58.0",
|
|
82
|
+
"@typespec/xml": "0.58.0",
|
|
83
|
+
"c8": "~10.1.2",
|
|
84
84
|
"eslint": "~8.57.0",
|
|
85
|
-
"eslint-plugin-deprecation": "~
|
|
86
|
-
"mocha": "~10.
|
|
87
|
-
"prettier": "~3.
|
|
88
|
-
"rimraf": "~
|
|
89
|
-
"typescript": "~5.
|
|
85
|
+
"eslint-plugin-deprecation": "~3.0.0",
|
|
86
|
+
"mocha": "~10.6.0",
|
|
87
|
+
"prettier": "~3.3.3",
|
|
88
|
+
"rimraf": "~6.0.1",
|
|
89
|
+
"typescript": "~5.5.3"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -9,25 +9,25 @@
|
|
|
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
|
-
"@azure-tools/cadl-ranch-specs": "0.34.
|
|
13
|
-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.
|
|
12
|
+
"@azure-tools/cadl-ranch-specs": "0.34.10",
|
|
13
|
+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.18.3.tgz"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@typespec/prettier-plugin-typespec": "~0.
|
|
17
|
-
"prettier-plugin-organize-imports": "
|
|
18
|
-
"prettier": "~3.
|
|
16
|
+
"@typespec/prettier-plugin-typespec": "~0.58.0",
|
|
17
|
+
"prettier-plugin-organize-imports": "4.0.0",
|
|
18
|
+
"prettier": "~3.3.3"
|
|
19
19
|
},
|
|
20
20
|
"overrides": {
|
|
21
|
-
"@typespec/compiler": ">=0.
|
|
22
|
-
"@typespec/http": ">=0.
|
|
23
|
-
"@typespec/rest": ">=0.
|
|
24
|
-
"@typespec/versioning": ">=0.
|
|
25
|
-
"@typespec/openapi": ">=0.
|
|
26
|
-
"@typespec/xml": ">=0.
|
|
27
|
-
"@azure-tools/typespec-azure-core": ">=0.
|
|
28
|
-
"@azure-tools/typespec-client-generator-core": ">=0.
|
|
29
|
-
"@azure-tools/typespec-azure-resource-manager": ">=0.
|
|
30
|
-
"@azure-tools/typespec-autorest": ">=0.
|
|
21
|
+
"@typespec/compiler": ">=0.58.0 <1.0.0",
|
|
22
|
+
"@typespec/http": ">=0.58.0 <1.0.0",
|
|
23
|
+
"@typespec/rest": ">=0.58.0 <1.0.0",
|
|
24
|
+
"@typespec/versioning": ">=0.58.0 <1.0.0",
|
|
25
|
+
"@typespec/openapi": ">=0.58.0 <1.0.0",
|
|
26
|
+
"@typespec/xml": ">=0.58.0 <1.0.0",
|
|
27
|
+
"@azure-tools/typespec-azure-core": ">=0.44.0 <1.0.0",
|
|
28
|
+
"@azure-tools/typespec-client-generator-core": ">=0.44.2 < 1.0.0",
|
|
29
|
+
"@azure-tools/typespec-azure-resource-manager": ">=0.44.0 <1.0.0",
|
|
30
|
+
"@azure-tools/typespec-autorest": ">=0.44.1 <1.0.0"
|
|
31
31
|
},
|
|
32
32
|
"private": true
|
|
33
33
|
}
|