Pass in the parent and value to the dynamic schema function

@rprieto

Pass in the parent and value to the schema function

The parent isnt always useful for an array as there isn't a way to dive into the actual object you are validating

e.g. when the array you are iterating over has a different schema for each element