diff --git a/docs/offer/offer-schema.yaml b/docs/offer/offer-schema.yaml index 7a7c17f8..c967041a 100644 --- a/docs/offer/offer-schema.yaml +++ b/docs/offer/offer-schema.yaml @@ -159,15 +159,7 @@ definitions: offerLanguagesValues: type: array items: - type: string - enum: - - English - - Ukrainian - - Polish - - German - - French - - Spanish - - Arabic + $ref: '#/definitions/userSpokenLanguagesEnum' offerAuthor: type: object properties: @@ -219,15 +211,7 @@ definitions: tutor: type: number nativeLanguage: - type: string - enum: - - English - - Ukrainian - - Polish - - German - - French - - Spanish - - Arabic + $ref: '#/definitions/userSpokenLanguagesEnum' status: $ref: '#/definitions/userStatusEnum' photo: diff --git a/docs/user/user-schema.yaml b/docs/user/user-schema.yaml index 6cf77daa..52f8b1d8 100644 --- a/docs/user/user-schema.yaml +++ b/docs/user/user-schema.yaml @@ -335,3 +335,13 @@ definitions: enum: - active - blocked + userSpokenLanguagesEnum: + type: string + enum: + - English + - Ukrainian + - Polish + - German + - French + - Spanish + - Arabic