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

Fixed incorrect field assignment in Offers #1095

Merged
merged 4 commits into from
Dec 28, 2024
Merged
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
26 changes: 26 additions & 0 deletions docs/category/category-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,29 @@ definitions:
type: string
name:
type: string
categoryWithNameAppearance:
type: object
properties:
_id:
type: string
name:
type: string
appearance:
type: object
properties:
icon:
type: string
color:
type: string
categoryWithAppearance:
type: object
properties:
_id:
type: string
appearance:
type: object
properties:
icon:
type: string
color:
type: string
189 changes: 103 additions & 86 deletions docs/offer/offer-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,25 @@ definitions:
price:
type: number
proficiencyLevel:
type: array
items:
type: string
enum:
- Beginner
- Intermediate
- Advanced
- Test Preparation
- Professional
- Specialized
$ref: '#/definitions/offerProficiencyLevelValues'
title:
type: string
description:
type: string
languages:
type: array
items:
type: string
enum:
- English
- Ukrainian
- Polish
- German
- French
- Spanish
- Arabic
$ref: '#/definitions/offerLanguagesValues'
authorRole:
type: string
author:
type: string
ref: '#components/user'
$ref: '#/definitions/offerAuthorExtended'
enrolledUsers:
type: array
ref: '#components/user'
items:
type: string
subject:
type: string
ref: '#components/subject'
$ref: '#/definitions/subjectWithName'
category:
type: string
ref: '#components/category'
chatId:
type: string
ref: '#/components/chat'
$ref: '#/definitions/categoryWithAppearance'
status:
type: string
enum:
Expand All @@ -67,55 +43,40 @@ definitions:
type: string
answer:
type: string
_id:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
chatId:
type: string
nullable: true
offerBody:
type: object
properties:
price:
type: number
proficiencyLevel:
type: array
items:
type: string
enum:
- Beginner
- Intermediate
- Advanced
- Test Preparation
- Professional
- Specialized
$ref: '#/definitions/offerProficiencyLevelValues'
title:
type: string
description:
type: string
languages:
type: array
items:
type: string
enum:
- English
- Ukrainian
- Polish
- German
- French
- Spanish
- Arabic
$ref: '#/definitions/offerLanguagesValues'
authorRole:
type: string
enrolledUsers:
type: array
ref: '#components/user'
items:
type: string
subject:
type: string
ref: '#components/subject'
category:
type: string
ref: '#components/category'
status:
type: string
enum:
Expand All @@ -139,49 +100,25 @@ definitions:
price:
type: number
proficiencyLevel:
type: array
items:
type: string
enum:
- Beginner
- Intermediate
- Advanced
- Test Preparation
- Professional
- Specialized
$ref: '#/definitions/offerProficiencyLevelValues'
title:
type: string
description:
type: string
languages:
type: array
items:
type: string
enum:
- English
- Ukrainian
- Polish
- German
- French
- Spanish
- Arabic
$ref: '#/definitions/offerLanguagesValues'
authorRole:
type: string
author:
type: string
ref: '#components/user'
$ref: '#/definitions/offerAuthor'
enrolledUsers:
type: array
ref: '#components/user'
items:
type: string
subject:
type: string
ref: '#components/subject'
$ref: '#/definitions/subjectWithName'
category:
type: string
ref: '#components/category'
chatId:
type: string
ref: '#/components/chat'
$ref: '#/definitions/categoryWithAppearance'
status:
type: string
enum:
Expand All @@ -197,9 +134,89 @@ definitions:
type: string
answer:
type: string
_id:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
chatId:
type: string
nullable: true
offerProficiencyLevelEnum:
type: string
enum:
- Beginner
- Intermediate
- Advanced
- Test Preparation
- Professional
- Specialized
offerProficiencyLevelValues:
type: array
items:
$ref: '#/definitions/offerProficiencyLevelEnum'
offerLanguagesValues:
type: array
items:
$ref: '#/definitions/userSpokenLanguagesEnum'
offerAuthor:
type: object
properties:
_id:
type: string
firstName:
type: string
lastName:
type: string
totalReviews:
type: object
properties:
student:
type: number
tutor:
type: number
averageRating:
type: object
properties:
student:
type: number
tutor:
type: number
photo:
type: string
professionalSummary:
type: string
offerAuthorExtended:
type: object
properties:
_id:
type: string
firstName:
type: string
lastName:
type: string
totalReviews:
type: object
properties:
student:
type: number
tutor:
type: number
averageRating:
type: object
properties:
student:
type: number
tutor:
type: number
nativeLanguage:
$ref: '#/definitions/userSpokenLanguagesEnum'
status:
$ref: '#/definitions/userStatusEnum'
photo:
type: string
professionalSummary:
type: string
Loading
Loading