Pass in the parent and value to the dynamic schema function

@rprieto

Pass in the parent and value to the schema function

The parent is not very useful for an array as there isn't a way to dive into the actual object you are validating