Fixed numeric validation

| Q                    | A
| -------------------- | ---
| Bug fix?             | Yes
| New feature?         | No
| BC breaks?           | No
| CI currently passes? | WIP
| Tests pass?          | Yes
| Scenarios pass?      | Yes
| Checkstyle issues?   |
| Changelog updated?   | No
| Fixed tickets        | PIM-2781
| Doc PR               |