Skip to content

Magento 2 admin product attribute custom validation on backend form

I have created 2 attributes of product using patch,
type : decimal
input : text

Also created one mixing is file and added my custom rule there but when I tried to add validation using
validate_rules => {"decimal-precision-fix":true}

But it is not working.