Skip to content

Commit

Permalink
replaced variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemHolikov committed Dec 12, 2024
1 parent f73d300 commit c9694f4
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 43 deletions.
6 changes: 3 additions & 3 deletions docs/attachments/attachments-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ definitions:
type: number
category:
type: string
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
createdAt:
type: string
format: date-time
Expand All @@ -36,7 +36,7 @@ definitions:
type: number
category:
type: string
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
attachment:
type: object
properties:
Expand All @@ -52,7 +52,7 @@ definitions:
type: number
category:
type: string
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
createdAt:
type: string
format: date-time
Expand Down
2 changes: 1 addition & 1 deletion docs/chat/chat-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ definitions:
properties:
user:
type: string
ref: '#/components/user'
$ref: '#/components/user'
role:
type: string
createdAt:
Expand Down
18 changes: 9 additions & 9 deletions docs/course/course-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ definitions:
type: string
author:
type: string
ref: '#components/user'
$ref: '#components/user'
category:
type: string
ref: '#components/category'
$ref: '#definitions/category'
subject:
type: string
ref: '#components/subject'
$ref: '#definitions/subject'
proficiencyLevel:
type: array
items:
Expand Down Expand Up @@ -68,13 +68,13 @@ definitions:
type: string
author:
type: string
ref: '#components/user'
$ref: '#components/user'
category:
type: string
ref: '#components/category'
$ref: '#definitions/category'
subject:
type: string
ref: '#components/subject'
$ref: '#definitions/subject'
proficiencyLevel:
type: array
items:
Expand Down Expand Up @@ -122,13 +122,13 @@ definitions:
type: string
author:
type: string
ref: '#components/user'
$ref: '#components/user'
category:
type: string
ref: '#components/category'
$ref: '#definitions/category'
subject:
type: string
ref: '#components/subject'
$ref: '#definitions/subject'
proficiencyLevel:
type: array
items:
Expand Down
8 changes: 4 additions & 4 deletions docs/message/message-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ definitions:
properties:
author:
type: string
ref: '#/components/user'
$ref: '#/components/user'
text:
type: string
chat:
type: string
ref: '#/components/chat'
$ref: '#/definitions/chat'
message:
type: object
properties:
Expand All @@ -30,7 +30,7 @@ definitions:
properties:
_id:
type: string
ref: '#/components/user'
$ref: '#/components/user'
photo:
type: string
authorRole:
Expand All @@ -46,7 +46,7 @@ definitions:
type: boolean
chat:
type: string
ref: '#/components/chat'
$ref: '#/definitions/chat'
createdAt:
type: string
format: date-time
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: '#components/user'
isPrivate:
type: boolean
createdAt:
Expand All @@ -35,7 +35,7 @@ definitions:
type: string
author:
type: string
ref: '#components/user'
$ref: '#components/user'
isPrivate:
type: boolean
createdAt:
Expand Down
26 changes: 13 additions & 13 deletions docs/offer/offer-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ definitions:
type: string
author:
type: string
ref: '#components/user'
$ref: '#components/user'
enrolledUsers:
type: array
ref: '#components/user'
$ref: '#components/user'
subject:
type: string
ref: '#components/subject'
$ref: '#definitions/subject'
category:
type: string
ref: '#components/category'
$ref: '#definitions/category'
chatId:
type: string
ref: '#/components/chat'
$ref: '#/definitions/chat'
status:
type: string
enum:
Expand Down Expand Up @@ -109,13 +109,13 @@ definitions:
type: string
enrolledUsers:
type: array
ref: '#components/user'
$ref: '#components/user'
subject:
type: string
ref: '#components/subject'
$ref: '#definitions/subject'
category:
type: string
ref: '#components/category'
$ref: '#definitions/category'
status:
type: string
enum:
Expand Down Expand Up @@ -169,19 +169,19 @@ definitions:
type: string
author:
type: string
ref: '#components/user'
$ref: '#components/user'
enrolledUsers:
type: array
ref: '#components/user'
$ref: '#components/user'
subject:
type: string
ref: '#components/subject'
$ref: '#definitions/subject'
category:
type: string
ref: '#components/category'
$ref: '#definitions/category'
chatId:
type: string
ref: '#/components/chat'
$ref: '#/definitions/chat'
status:
type: string
enum:
Expand Down
10 changes: 5 additions & 5 deletions docs/questions/question.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ definitions:
type: boolean
author:
type: string
ref: '#/components/user'
$ref: '#/components/user'
category:
type: string
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
createdAt:
type: string
format: date-time
Expand All @@ -51,7 +51,7 @@ definitions:
type: string
category:
type: string
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
question:
type: object
properties:
Expand All @@ -72,10 +72,10 @@ definitions:
type: boolean
author:
type: string
ref: '#/components/user'
$ref: '#/components/user'
category:
type: string
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
createdAt:
type: string
format: date-time
Expand Down
8 changes: 4 additions & 4 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: '#/definitions/user'
$ref: '#/components/user'
category:
$ref: '#/definitions/resourcesCategory'
settings:
Expand Down Expand Up @@ -50,13 +50,13 @@ definitions:
category:
type: string
description: _id
ref: '#/definitions/resourcesCategory'
$ref: '#/definitions/resourcesCategory'
items:
type: array
items:
type: string
description: _id
ref: '#/components/question'
$ref: '#/definitions/question'
settings:
type: object
properties:
Expand Down Expand Up @@ -87,7 +87,7 @@ definitions:
items:
$ref: '#/definitions/question'
author:
$ref: '#/definitions/user'
$ref: '#/components/user'
category:
$ref: '#/definitions/resourcesCategory'
settings:
Expand Down
4 changes: 2 additions & 2 deletions docs/subject/subject-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ definitions:
type: string
category:
type: string
$ref: '#/components/category'
$ref: '#/definitions/category'
subject:
type: object
properties:
Expand All @@ -52,7 +52,7 @@ definitions:
type: string
category:
type: string
$ref: '#/components/category'
$ref: '#/definitions/category'
totalOffers:
type: object
properties:
Expand Down

0 comments on commit c9694f4

Please sign in to comment.