Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced ref to $ref and components to definitions #1062

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
36 changes: 18 additions & 18 deletions docs/chat/chat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand Down Expand Up @@ -118,7 +118,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -128,7 +128,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand All @@ -138,7 +138,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 404
code: DOCUMENT_NOT_FOUND
Expand Down Expand Up @@ -166,7 +166,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -176,7 +176,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand All @@ -186,7 +186,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 404
code: DOCUMENT_NOT_FOUND
Expand Down Expand Up @@ -221,7 +221,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -231,7 +231,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand All @@ -241,7 +241,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 404
code: DOCUMENT_NOT_FOUND
Expand Down Expand Up @@ -270,7 +270,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 400
code: INVALID_ID
Expand All @@ -280,7 +280,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -290,7 +290,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand All @@ -300,7 +300,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 404
code: DOCUMENT_NOT_FOUND
Expand Down Expand Up @@ -339,7 +339,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 400
code: INVALID_ID
Expand All @@ -349,7 +349,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -359,7 +359,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand All @@ -369,7 +369,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 404
code: DOCUMENT_NOT_FOUND
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: '#definitions/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: '#definitions/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: '#definitions/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
10 changes: 5 additions & 5 deletions docs/finishedQuiz/finishedQuiz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -73,7 +73,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand Down Expand Up @@ -132,7 +132,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 401
code: UNAUTHORIZED
Expand All @@ -142,7 +142,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 403
code: FORBIDDEN
Expand All @@ -152,7 +152,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/Error'
$ref: '#/definitions/Error'
example:
status: 404
code: DOCUMENT_NOT_FOUND
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
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: '#/definitions/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: '#/definitions/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: '#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
Loading
Loading