App\Domain\Registry\Model\Embeddable\Address:
    properties:
        mail:
            - Email:
                message: 'registry_address.mail.email'
                groups: ['default']
            - Length:
                  max: 255
                  groups: ['default']
        phoneNumber:
            - Regex:
                pattern: '/^0[1-9][0-9]{8}$/'
                message: 'registry_address.phone_number.regex'
                groups: ['default']
        zipCode:
            - Regex:
                pattern: '/^[0-9]{2,5}$/'
                message: 'registry_address.zip_code.regex'
                groups: ['default']
        lineOne:
            - Length:
                max: 255
                groups: ['default']
        lineTwo:
            - Length:
                max: 255
                groups: ['default']
        city:
            - Length:
                  max: 255
                  groups: ['default']
