Skip to content

How to override Validation.xml from module-customer

I want to override vendor/magento/module-customer/etc/validation.xml
This validation.xml in custom module.

Baically I want to change below file location with my custom module file

<rule name="check_name">
   <entity_constraints>
        <constraint alias="name_validator" class="MagentoCustomerModelValidatorName" />
   </entity_constraints>
</rule>

This MagentoCustomerModelValidatorName with VendorModuleModelValidatorName

If anyone have any idea please share.

TIA