I designed a very simple validation API when I was learning about Builder Pattern. Now, I have improved the code and used it in a small project. The code is now-
- Can return return objects
- Has support for compound validators
- Other improvements have been made; like readability and updating comments
Please find the code @ https://github.com/73ddy/poc_trunk/tree/V0.1
Here is a gist of the code, in order to make it sound less boring. Please have a look, and point out my mistakes and suggest improvements in the design.