I have made a couple of validation rules for my schema, which was working fine until I had to use a Custom Rule.
The structure of my code is as follows: (can add more