Skip to content

Commit 8cc319e

Browse files
mgmt, sync PR 6995, prepare release autorest.java/typespec-java for mock test fix (#3076)
* sync core * re-generate test code * sync core after main * update autorest.java * increase autorest.java * update typespec-extension --------- Co-authored-by: actions-user <[email protected]>
1 parent e36f355 commit 8cc319e

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

core

Submodule core updated 182 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.45",
3+
"version": "4.1.46",
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.29.1 (2025-04-17)
4+
5+
Compatible with compiler 1.0.0-rc.0.
6+
7+
- Supported sync-stack for MPG. Use `enable-sync-stack: true` to enable.
8+
39
## 0.29.0 (2025-04-03)
410

511
Compatible with compiler 1.0.0-rc.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.29.0",
3+
"version": "0.29.1",
44
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
55
"keywords": [
66
"TypeSpec"

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.11",
1414
"@typespec/http-specs": "0.1.0-alpha.17",
1515
"@azure-tools/azure-http-specs": "0.1.0-alpha.13",
16-
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.29.0.tgz"
16+
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.29.1.tgz"
1717
},
1818
"devDependencies": {
1919
"@typespec/prettier-plugin-typespec": "~0.68.0",

vanilla-tests/src/test/java/fixtures/bodycomplex/generated/SmartSalmonTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public final class SmartSalmonTests {
1616
@org.junit.jupiter.api.Test
1717
public void testDeserialize() throws Exception {
1818
SmartSalmon model = BinaryData.fromString(
19-
"{\"fishtype\":\"smart_salmon\",\"college_degree\":\"lssai\",\"\":{\"eebvmgxsab\":\"datajwnzlljfmp\"},\"location\":\"qduujitcjczdz\",\"iswild\":false,\"species\":\"hkr\",\"length\":38.019188,\"siblings\":[{\"fishtype\":\"Fish\",\"species\":\"p\",\"length\":43.59222,\"siblings\":[{\"fishtype\":\"Fish\",\"species\":\"vwrwj\",\"length\":48.286907,\"siblings\":[{\"fishtype\":\"Fish\",\"length\":93.839714}]},{\"fishtype\":\"Fish\",\"species\":\"utjeltmrldhugj\",\"length\":66.317825,\"siblings\":[{\"fishtype\":\"Fish\",\"length\":68.56524},{\"fishtype\":\"Fish\",\"length\":94.724525}]},{\"fishtype\":\"Fish\",\"species\":\"hocdgeab\",\"length\":70.60696,\"siblings\":[{\"fishtype\":\"Fish\",\"length\":91.44667},{\"fishtype\":\"Fish\",\"length\":9.046102},{\"fishtype\":\"Fish\",\"length\":89.55463}]}]}]}")
19+
"{\"fishtype\":\"smart_salmon\",\"college_degree\":\"lssai\",\"eebvmgxsab\":\"datajwnzlljfmp\",\"location\":\"qduujitcjczdz\",\"iswild\":false,\"species\":\"hkr\",\"length\":38.019188,\"siblings\":[{\"fishtype\":\"Fish\",\"species\":\"p\",\"length\":43.59222,\"siblings\":[{\"fishtype\":\"Fish\",\"species\":\"vwrwj\",\"length\":48.286907,\"siblings\":[{\"fishtype\":\"Fish\",\"length\":93.839714}]},{\"fishtype\":\"Fish\",\"species\":\"utjeltmrldhugj\",\"length\":66.317825,\"siblings\":[{\"fishtype\":\"Fish\",\"length\":68.56524},{\"fishtype\":\"Fish\",\"length\":94.724525}]},{\"fishtype\":\"Fish\",\"species\":\"hocdgeab\",\"length\":70.60696,\"siblings\":[{\"fishtype\":\"Fish\",\"length\":91.44667},{\"fishtype\":\"Fish\",\"length\":9.046102},{\"fishtype\":\"Fish\",\"length\":89.55463}]}]}]}")
2020
.toObject(SmartSalmon.class);
2121
Assertions.assertEquals("hkr", model.getSpecies());
2222
Assertions.assertEquals(38.019188f, model.getLength());
@@ -44,7 +44,7 @@ public void testSerialize() throws Exception {
4444
.setLocation("qduujitcjczdz")
4545
.setIswild(false)
4646
.setCollegeDegree("lssai")
47-
.setAdditionalProperties(mapOf("fishtype", "smart_salmon"));
47+
.setAdditionalProperties(mapOf("fishtype", "smart_salmon", "eebvmgxsab", "datajwnzlljfmp"));
4848
model = BinaryData.fromObject(model).toObject(SmartSalmon.class);
4949
Assertions.assertEquals("hkr", model.getSpecies());
5050
Assertions.assertEquals(38.019188f, model.getLength());

0 commit comments

Comments
 (0)