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.