Skip to content

Commit 113f7ca

Browse files
[azopenaiassistants] Fixing bug where the ThreadRun.RequiredAction was deserialized incorrectly (Azure#22834)
Fixing bug where the ThreadRun.RequiredAction was deserialized incorrectly, making it impossible to actually resubmit a tool output. Fixes Azure#22767
1 parent da3b7a1 commit 113f7ca

14 files changed

+528
-135
lines changed

eng/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
"Name": "azopenai",
4949
"CoverageGoal": 0.26
5050
},
51+
{
52+
"Name": "ai/azopenaiassistants",
53+
"CoverageGoal": 0.15
54+
},
5155
{
5256
"Name": "aztemplate",
5357
"CoverageGoal": 0.50

sdk/ai/azopenaiassistants/CHANGELOG.md

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

3-
## 0.1.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 0.1.1 (2024-05-07)
84

95
### Bugs Fixed
106

11-
### Other Changes
7+
- ThreadRun.RequiredAction was deserialized incorrectly, making it impossible to actually resubmit a tool output. (PR#22834)
128

139
## 0.1.0 (2024-03-05)
1410

sdk/ai/azopenaiassistants/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "go",
44
"TagPrefix": "go/ai/azopenaiassistants",
5-
"Tag": "go/ai/azopenaiassistants_eee72902cb"
5+
"Tag": "go/ai/azopenaiassistants_935e64a933"
66
}

sdk/ai/azopenaiassistants/autorest.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,13 @@ directive:
3030
- from: swagger-document
3131
where: $["x-ms-parameterized-host"].parameters.0
3232
transform: $["x-ms-parameter-location"] = "client";
33+
34+
# fix a generation issue where "| null" in TypeSpec generates an allOf that
35+
# doesn't work with our polymorphic types.
36+
- from: swagger-document
37+
where: $.definitions.ThreadRun.properties.required_action
38+
transform: |
39+
$["$ref"] = "#/definitions/RequiredAction"
40+
delete $["allOf"];
41+
return $;
3342
```

sdk/ai/azopenaiassistants/client_custom_files_test.go

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

0 commit comments

Comments
 (0)