Skip to content

Commit

Permalink
Fix incorrect swagger example in Chats section (#1028)
Browse files Browse the repository at this point in the history
* fix chat requestBody example

* fix chatBody schema
  • Loading branch information
ShadowOfTheSpace authored Dec 4, 2024
1 parent c5c9b97 commit 83f68bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 4 additions & 8 deletions docs/chat/chat-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ definitions:
chatBody:
type: object
properties:
members:
type: object
properties:
user:
type: string
ref: '#/components/user'
role:
type: string
member:
type: string
memberRole:
type: string
chat:
type: object
properties:
Expand Down
5 changes: 3 additions & 2 deletions docs/chat/chat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ paths:
application/json:
schema:
$ref: '#/definitions/chatBody'
member: 6421d9833cdf38b706756dff
memberRole: student
example:
member: 6421d9833cdf38b706756dff
memberRole: student
responses:
201:
description: OK
Expand Down

0 comments on commit 83f68bc

Please sign in to comment.