<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<validation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Validator/etc/validation.xsd">
    <entity name="catalog_product">
        <rules>
            <rule name="name_sku_and_price">
                <property_constraints>
                    <property name="name">
                        <constraint alias="some_validator" class="Magento\Framework\Validator_StringLenght">
                            <!-- attribute class is not allowed for method element -->
                            <method name="setOptions" class="Object">
                            </method>
                            <!-- attribute name is required for method element -->
                            <method >
                                <argument>7</argument>
                            </method>
                        </constraint>
                    </property>
                </property_constraints>
            </rule>
        </rules>
        <groups>
            <group name="create">
                <uses>
                    <use rule="name_sku_and_price"/>
                </uses>
            </group>
        </groups>
    </entity>
</validation>
