Allow to define a type for custom SchemaType validators

In previews releases the type of SchemaType validators used to equal the validator message. In the latest release the type is now "user defined".  In the past I was able to distinguish all validation errors (build in and custom) by the type. Now I get for custom validation errors "user defined". This fix allows to define a type for custom SchemaType validators.