type: object properties: firstName: type: string description: User's first name example: 'Пётр' surname: type: string description: User's surname example: 'Сидоров' avatar: type: array description: User's avatar photos items: $ref: './Photo.yaml' role: type: string enum: - USER - MODERATOR - ADMIN - DELETED description: User's role example: 'moderator'