Skip to content

Commit

Permalink
all users defined as definitions instead of components
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemHolikov committed Dec 16, 2024
1 parent c9694f4 commit 218c456
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions docs/chat/chat-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ definitions:
properties:
user:
type: string
$ref: '#/components/user'
$ref: '#/definitions/user'
role:
type: string
createdAt:
Expand All @@ -37,7 +37,7 @@ definitions:
properties:
user:
type: string
$ref: '#/components/user'
$ref: '#/definitions/user'
role:
type: string
createdAt:
Expand Down
6 changes: 3 additions & 3 deletions docs/course/course-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
category:
type: string
$ref: '#definitions/category'
Expand Down Expand Up @@ -68,7 +68,7 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
category:
type: string
$ref: '#definitions/category'
Expand Down Expand Up @@ -122,7 +122,7 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
category:
type: string
$ref: '#definitions/category'
Expand Down
2 changes: 1 addition & 1 deletion docs/lesson/lesson-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
title:
type: string
description:
Expand Down
4 changes: 2 additions & 2 deletions docs/message/message-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ definitions:
properties:
author:
type: string
$ref: '#/components/user'
$ref: '#/definitions/user'
text:
type: string
chat:
Expand All @@ -30,7 +30,7 @@ definitions:
properties:
_id:
type: string
$ref: '#/components/user'
$ref: '#/definitions/user'
photo:
type: string
authorRole:
Expand Down
4 changes: 2 additions & 2 deletions docs/note/note-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
isPrivate:
type: boolean
createdAt:
Expand All @@ -35,7 +35,7 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
isPrivate:
type: boolean
createdAt:
Expand Down
10 changes: 5 additions & 5 deletions docs/offer/offer-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
enrolledUsers:
type: array
$ref: '#components/user'
$ref: '#definitions/user'
subject:
type: string
$ref: '#definitions/subject'
Expand Down Expand Up @@ -109,7 +109,7 @@ definitions:
type: string
enrolledUsers:
type: array
$ref: '#components/user'
$ref: '#definitions/user'
subject:
type: string
$ref: '#definitions/subject'
Expand Down Expand Up @@ -169,10 +169,10 @@ definitions:
type: string
author:
type: string
$ref: '#components/user'
$ref: '#definitions/user'
enrolledUsers:
type: array
$ref: '#components/user'
$ref: '#definitions/user'
subject:
type: string
$ref: '#definitions/subject'
Expand Down
4 changes: 2 additions & 2 deletions docs/questions/question.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ definitions:
type: boolean
author:
type: string
$ref: '#/components/user'
$ref: '#/definitions/user'
category:
type: string
$ref: '#/definitions/resourcesCategory'
Expand Down Expand Up @@ -72,7 +72,7 @@ definitions:
type: boolean
author:
type: string
$ref: '#/components/user'
$ref: '#/definitions/user'
category:
type: string
$ref: '#/definitions/resourcesCategory'
Expand Down
4 changes: 2 additions & 2 deletions docs/quiz/quiz-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ definitions:
items:
$ref: '#/definitions/question'
author:
$ref: '#/components/user'
$ref: '#/definitions/user'
category:
$ref: '#/definitions/resourcesCategory'
settings:
Expand Down Expand Up @@ -87,7 +87,7 @@ definitions:
items:
$ref: '#/definitions/question'
author:
$ref: '#/components/user'
$ref: '#/definitions/user'
category:
$ref: '#/definitions/resourcesCategory'
settings:
Expand Down

0 comments on commit 218c456

Please sign in to comment.