Oro\Bundle\RFPBundle\Entity\Request:
    properties:
        firstName:
            - NotBlank: ~
            - Length:
                max: 255
        lastName:
            - NotBlank: ~
            - Length:
                max: 255
        email:
            - NotBlank: ~
            - Email: ~
            - Length:
                max: 255
        company:
            - NotBlank: ~
            - Length:
                max: 255
        role:
            - Length:
                max: 255
        poNumber:
            - Length:
                max: 255
        shipUntil:
            - Type:
                  type: DateTimeInterface
                  message: oro.rfp.request.ship_until.type.message
                  payload:
                      jsValidation:
                          type: Date
        requestProducts:
            - Valid: ~

Oro\Bundle\RFPBundle\Entity\RequestProduct:
    properties:
        request:
            - NotBlank: ~
        product:
            - NotBlank:
                message: 'oro.rfp.requestproduct.product.blank'
        productSku:
            - NotBlank:
                groups: [ Import ]
        requestProductItems:
            - Count:
                min: 1
                minMessage: 'oro.rfp.requestproduct.request_product_items.blank'
            - Valid: ~

Oro\Bundle\RFPBundle\Entity\RequestProductItem:
    constraints:
        - Oro\Bundle\ProductBundle\Validator\Constraints\QuantityUnitPrecision:
            path: quantity
    properties:
        requestProduct:
            - NotBlank: ~
        quantity:
            - Oro\Bundle\ValidationBundle\Validator\Constraints\Decimal: ~
            - Oro\Bundle\ValidationBundle\Validator\Constraints\GreaterThanZero: ~
        productUnit:
            - NotBlank:
                message: 'oro.product.productunit.invalid'
        productUnitCode:
            - NotBlank:
                groups: [ Import ]
        price:
            - Valid: ~
