Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

profiles.js 651B

1234567891011121314151617181920212223
  1. 'use strict'
  2. const Joi = require('joi')
  3. const surveyResponseSchema = require('./responses')
  4. const singleProfile = Joi.object({
  5. profile_id: Joi.number(),
  6. user_id: Joi.number(),
  7. user_name: Joi.string(),
  8. responses: surveyResponseSchema.list,
  9. tags: Joi.array().items(),
  10. user_type: Joi.any(),
  11. user: Joi.object(),
  12. profile_description: Joi.string().allow(null, ''),
  13. profile_prefs: Joi.object(),
  14. profile_media: Joi.array().items(),
  15. profile_languages: Joi.array().items(),
  16. }).label('profile_single')
  17. module.exports = {
  18. single: singleProfile,
  19. list: Joi.array().items(singleProfile).label('profile_list')
  20. }