<?xml version="1.0" encoding="UTF-8"?>

<!--

 This file is part of the Sylius package.

 (c) Paweł Jędrzejewski

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping
                                        http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">

    <class name="Sylius\Bundle\SettingsBundle\Model\Parameter">
        <property name="namespace">
            <constraint name="NotBlank">
                <option name="message">sylius.parameter.namespace.not_blank</option>
            </constraint>
            <constraint name="Length">
                <option name="min">1</option>
                <option name="minMessage">sylius.parameter.namespace.min_length</option>
                <option name="max">255</option>
                <option name="maxMessage">sylius.parameter.namespace.max_length</option>
            </constraint>
        </property>
        <property name="name">
            <constraint name="NotBlank">
                <option name="message">sylius.parameter.name.not_blank</option>
            </constraint>
            <constraint name="Length">
                <option name="min">1</option>
                <option name="minMessage">sylius.parameter.name.min_length</option>
                <option name="max">255</option>
                <option name="maxMessage">sylius.parameter.name.max_length</option>
            </constraint>
        </property>
    </class>

</constraint-mapping>
