Skip to content

Commit a31f2a0

Browse files
committed
Using bodyRoot again
1 parent 48ed512 commit a31f2a0

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

specification/ai/OpenAI.Assistants/messages/routes.tsp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ op createMessage(
3232
@path threadId: string,
3333

3434
/** A single message within an assistant thread, as provided during that thread's creation for its initial state. */
35-
...ThreadMessageOptions,
35+
@added(ServiceApiVersions.v2024_02_15_preview)
36+
@bodyRoot
37+
threadMessageOptions: ThreadMessageOptions,
3638
): ThreadMessage;
3739

3840
/**

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-02-15-preview/assistants_generated.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,9 @@
759759
"type": "string"
760760
},
761761
{
762-
"name": "body",
762+
"name": "threadMessageOptions",
763763
"in": "body",
764+
"description": "A single message within an assistant thread, as provided during that thread's creation for its initial state.",
764765
"required": true,
765766
"schema": {
766767
"$ref": "#/definitions/ThreadMessageOptions"

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-05-01-preview/assistants_generated.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,9 @@
802802
"type": "string"
803803
},
804804
{
805-
"name": "body",
805+
"name": "threadMessageOptions",
806806
"in": "body",
807+
"description": "A single message within an assistant thread, as provided during that thread's creation for its initial state.",
807808
"required": true,
808809
"schema": {
809810
"$ref": "#/definitions/ThreadMessageOptions"

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-02-15-preview/assistants_generated.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ paths:
367367
schema:
368368
$ref: '#/components/schemas/ThreadMessage'
369369
requestBody:
370+
description: A single message within an assistant thread, as provided during that thread's creation for its initial state.
370371
required: true
371372
content:
372373
application/json:

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ paths:
367367
schema:
368368
$ref: '#/components/schemas/ThreadMessage'
369369
requestBody:
370+
description: A single message within an assistant thread, as provided during that thread's creation for its initial state.
370371
required: true
371372
content:
372373
application/json:

0 commit comments

Comments
 (0)