OptionalthrowThrow a ValidationError instead of returning { valid: false }. Defaults to false,
which is what makes the validators usable in a boolean expression.
OptionalallowedProtocols accepted, e.g. ["http:", "https:"]. Note the trailing colon.
OptionalallowAccept data: URLs whose MIME type is an image. Other data URLs stay rejected.
Options for URL validation, on top of ValidatorOptions.