Skip to content

Commit 725f0b0

Browse files
authored
Sync 7531, prepare typespec-java 0.31.1 release (#3124)
* sync core * package.json * update emitter-options * changelog.md * fix options.ts * sync core to main
1 parent bed7927 commit 725f0b0

6 files changed

Lines changed: 15 additions & 5 deletions

File tree

core

Submodule core updated 89 files

typespec-extension/changelog.md

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

3+
## 0.31.1 (2025-06-04)
4+
5+
Compatible with compiler 1.0.0.
6+
37
## 0.31.0 (2025-05-28)
48

59
Compatible with compiler 1.0.0.

typespec-extension/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.

typespec-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure-tools/typespec-java",
3-
"version": "0.31.0",
3+
"version": "0.31.1",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"

typespec-extension/src/options.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ export const EmitterOptionsSchema: JSONSchemaType<EmitterOptions> = {
115115
description: "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.",
116116
nullable: true,
117117
},
118+
"rename-model": {
119+
type: ["string", "object"],
120+
description: "Specify models to rename, in case unable to do so through TCGC. E.g. anonymous models or resource list models. Format should be in key-value form, or a comma separated string that follows 'BeforeRename:AfterRename' pattern.",
121+
additionalProperties: true,
122+
nullable: true,
123+
},
118124

119125
// configure
120126
"skip-special-headers": {

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.14",
1414
"@typespec/http-specs": "0.1.0-alpha.22",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.18",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.0.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.31.1.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "^1.0.0",

0 commit comments

Comments
 (0)