Ice\ExternalUserBundle\Entity\User:
    properties:
        email:
            - NotBlank:
                groups: [rest_register, rest_update]
                message: Please provide an email address
            - Email:
                groups: [rest_register, rest_update]
                message: Please provide a valid email address

        plainPassword:
            - NotBlank:
                groups: [rest_register, rest_set_password]
                message: Please provide a password
            - Length:
                groups: [rest_register, rest_set_password]
                min: 6
                minMessage: Your password must be at least six characters long

Ice\ExternalUserBundle\Entity\User:
    properties:
        email:
            - Email:
                groups: [rest_register, rest_update]
                message: Please provide a valid email address

        plainPassword:
            - NotBlank:
                groups: [rest_register, rest_set_password]
                message: Please provide a password
            - Length:
                groups: [rest_register, rest_set_password]
                min: 6
                minMessage: Your password must be at least six characters long

Allow User email to be null when using API.
Allow User email to be null when using API.
