Skip to content

Commit

Permalink
Using bodyRoot again
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl committed Jun 28, 2024
1 parent 48ed512 commit a31f2a0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion specification/ai/OpenAI.Assistants/messages/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ op createMessage(
@path threadId: string,

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,9 @@
"type": "string"
},
{
"name": "body",
"name": "threadMessageOptions",
"in": "body",
"description": "A single message within an assistant thread, as provided during that thread's creation for its initial state.",
"required": true,
"schema": {
"$ref": "#/definitions/ThreadMessageOptions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,9 @@
"type": "string"
},
{
"name": "body",
"name": "threadMessageOptions",
"in": "body",
"description": "A single message within an assistant thread, as provided during that thread's creation for its initial state.",
"required": true,
"schema": {
"$ref": "#/definitions/ThreadMessageOptions"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ paths:
schema:
$ref: '#/components/schemas/ThreadMessage'
requestBody:
description: A single message within an assistant thread, as provided during that thread's creation for its initial state.
required: true
content:
application/json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ paths:
schema:
$ref: '#/components/schemas/ThreadMessage'
requestBody:
description: A single message within an assistant thread, as provided during that thread's creation for its initial state.
required: true
content:
application/json:
Expand Down

0 comments on commit a31f2a0

Please sign in to comment.