Oro\Bundle\CurrencyBundle\Entity\Price:
    constraints:
        - Oro\Bundle\CurrencyBundle\Validator\Constraints\OptionalPrice:
            groups: [Optional]
    properties:
        value:
            - NotBlank:
                message: 'oro.currency.price.value.blank'
            - Type:
                groups: [Default, Optional]
                type: numeric
            - Range:
                groups: [Default, Optional]
                min: 0
        currency:
            - NotBlank: ~
            - Currency:
                groups: [Default, Optional]
