Skip to content

Commit 8a31d1a

Browse files
fix
1 parent f65ce8b commit 8a31d1a

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

api/specs/web-server/_conversations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
status_code=status.HTTP_201_CREATED,
5656
)
5757
async def create_conversation(
58-
_body: Annotated[_ConversationsCreateBodyParams, Depends()],
58+
_body: _ConversationsCreateBodyParams,
5959
_query: Annotated[_GetConversationsQueryParams, Depends()],
6060
): ...
6161

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -517,26 +517,17 @@ paths:
517517
summary: Create Conversation
518518
operationId: create_conversation
519519
parameters:
520-
- name: name
521-
in: query
522-
required: true
523-
schema:
524-
type: string
525-
title: Name
526520
- name: type
527521
in: query
528522
required: true
529523
schema:
530524
$ref: '#/components/schemas/ConversationType'
531525
requestBody:
526+
required: true
532527
content:
533528
application/json:
534529
schema:
535-
anyOf:
536-
- type: object
537-
additionalProperties: true
538-
- type: 'null'
539-
title: Extracontext
530+
$ref: '#/components/schemas/_ConversationsCreateBodyParams'
540531
responses:
541532
'201':
542533
description: Successful Response
@@ -18786,6 +18777,24 @@ components:
1878618777
- content
1878718778
- type
1878818779
title: _ConversationMessageCreateBodyParams
18780+
_ConversationsCreateBodyParams:
18781+
properties:
18782+
name:
18783+
type: string
18784+
title: Name
18785+
type:
18786+
$ref: '#/components/schemas/ConversationType'
18787+
extraContext:
18788+
anyOf:
18789+
- additionalProperties: true
18790+
type: object
18791+
- type: 'null'
18792+
title: Extracontext
18793+
type: object
18794+
required:
18795+
- name
18796+
- type
18797+
title: _ConversationsCreateBodyParams
1878918798
_InvitationDetails:
1879018799
properties:
1879118800
trialAccountDays:
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# conversations tests package

0 commit comments

Comments
 (0)