Skip to content

Commit f38ed65

Browse files
eng. prepare release 0.31.7 (#3161)
* Update core submodule to latest upstream main * Update package dependencies to latest versions * Sync test files with latest changes * autorest.java 4.1.55 * sync script * comment out rename-model * emitter 0.31.7 * options * commented out the mgmt flags for now * nit * core on pr 7875 * core on main
1 parent 60a4341 commit f38ed65

53 files changed

Lines changed: 1510 additions & 671 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core

Submodule core updated 558 files

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autorest/java",
3-
"version": "4.1.54",
3+
"version": "4.1.55",
44
"description": "The Java extension for classic generators in AutoRest.",
55
"scripts": {
66
"autorest": "autorest",

typespec-extension/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.31.7 (2025-07-10)
4+
5+
Compatible with compiler 1.1.0.
6+
7+
- Bug fixes and improvements.
8+
39
## 0.31.6 (2025-07-02)
410

511
Compatible with compiler 1.1.0.

typespec-extension/package-lock.json

Lines changed: 89 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typespec-extension/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.31.6",
3+
"version": "0.31.7",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"
@@ -74,9 +74,9 @@
7474
"@azure-tools/typespec-liftr-base": "0.8.0",
7575
"@types/js-yaml": "~4.0.9",
7676
"@types/lodash": "~4.17.20",
77-
"@types/node": "~24.0.10",
77+
"@types/node": "~24.0.12",
7878
"@typescript-eslint/eslint-plugin": "~8.32.1",
79-
"@typescript-eslint/parser": "~8.35.1",
79+
"@typescript-eslint/parser": "~8.36.0",
8080
"@typespec/compiler": "1.1.0",
8181
"@typespec/http": "1.1.0",
8282
"@typespec/openapi": "1.1.0",
@@ -98,7 +98,7 @@
9898
"prettier": "~3.6.2",
9999
"rimraf": "~6.0.1",
100100
"typescript": "~5.8.3",
101-
"typescript-eslint": "^8.35.1",
101+
"typescript-eslint": "^8.36.0",
102102
"vitest": "^3.2.4"
103103
},
104104
"overrides": {

typespec-extension/src/options.ts

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,58 @@ export const EmitterOptionsSchema: JSONSchemaType<EmitterOptions> = {
116116
"Specify the Java class that to be executed by emitter for [code customization](https://github.com/Azure/autorest.java/blob/main/customization-base/README.md), during post-process.",
117117
nullable: true,
118118
},
119-
"rename-model": {
120-
type: ["string", "object"],
121-
description:
122-
"Rename the model classes, in case they cannot be renamed via TCGC. E.g., anonymous models or templated models. Format should be in key-value form, or a comma-separated string that follows 'BeforeRename:AfterRename' pattern. This option is for management-plane SDK.",
123-
additionalProperties: true,
124-
nullable: true,
125-
},
119+
// "rename-model": {
120+
// type: ["string", "object"],
121+
// description:
122+
// "Rename the model classes, in case they cannot be renamed via TCGC. E.g., anonymous models or templated models. Format should be in key-value form. This option is for management-plane SDK.",
123+
// additionalProperties: true,
124+
// nullable: true,
125+
// },
126+
// "add-inner": {
127+
// type: ["string", "array"],
128+
// description:
129+
// "Generate the model as Inner classes. Format should be in array form. This option is for management-plane SDK.",
130+
// items: { type: "string" },
131+
// nullable: true,
132+
// },
133+
// "remove-inner": {
134+
// type: ["string", "array"],
135+
// description:
136+
// "Generate the model not as Inner classes. Format should be in array form. This option is for management-plane SDK.",
137+
// items: { type: "string" },
138+
// nullable: true,
139+
// },
140+
// "preserve-model": {
141+
// type: ["string", "array"],
142+
// description:
143+
// "Generate the model cleasses, even if it is not used by any API. Format should be in array form. This option is for management-plane SDK.",
144+
// items: { type: "string" },
145+
// nullable: true,
146+
// },
147+
// "generate-async-methods": {
148+
// type: "boolean",
149+
// description: "Generate async APIs in Clients. This option is for management-plane SDK.",
150+
// nullable: true,
151+
// },
152+
// "resource-collection-associations": {
153+
// type: "array",
154+
// description:
155+
// "Specify the associations of the resource to the colllection. Format should be in array form. This option is for management-plane SDK.",
156+
// items: {
157+
// type: "object",
158+
// properties: {
159+
// resource: {
160+
// type: "string",
161+
// description: "The name of the resource.",
162+
// },
163+
// collection: {
164+
// type: "string",
165+
// description: "The name of the collection to associate with.",
166+
// },
167+
// },
168+
// },
169+
// nullable: true,
170+
// },
126171

127172
// configure
128173
"skip-special-headers": {

typespec-tests/Generate.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ $generateScript = {
8787
$tspOptions += " --option ""@azure-tools/typespec-java.enable-sync-stack=true"""
8888
# rename model
8989
$tspOptions += " --option ""@azure-tools/typespec-java.rename-model=TopLevelArmResourceListResult:ResourceListResult,CustomTemplateResourcePropertiesAnonymousEmptyModel:AnonymousEmptyModel"""
90+
# remove inner
91+
$tspOptions += " --option ""@azure-tools/typespec-java.remove-inner=NginxConfigurationResponse"""
92+
# generate async methods
93+
$tspOptions += " --option ""@azure-tools/typespec-java.generate-async-methods=true"""
9094
} elseif ($tspFile -match "arm-stream-style-serialization.tsp") {
9195
# for mgmt, do not generate tests due to random mock values
9296
$tspOptions += " --option ""@azure-tools/typespec-java.generate-tests=false"""

typespec-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@typespec/spector": "0.1.0-alpha.15",
1414
"@typespec/http-specs": "0.1.0-alpha.23",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.22",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.6.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.7.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.1.0",

typespec-tests/src/main/java/tsptest/armresourceprovider/ArmResourceProviderManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ public ModelInterfaceSameNames modelInterfaceSameNames() {
377377
}
378378

379379
/**
380-
* Gets the resource collection API of ImmutableResourceModels. It manages NginxConfigurationResponse.
380+
* Gets the resource collection API of ImmutableResourceModels.
381381
*
382382
* @return Resource collection API of ImmutableResourceModels.
383383
*/

0 commit comments

Comments
 (0)