Allow validation to be only defined in the plugin options

This fixes an issue where the pre-validate hook does not get set if validation if defined as part of the plugin options and not directly on any scheme path.
Merge pull request #1 from jeremyworboys/patch-1

Allow validation to be only defined in the plugin options