System administrators should be able to create and add additional media-type validators with more specific constraints. A validator should be a callable (stream, properties={}) -> None which raises a ValidationError if the validation does not succeed.
It can be accomplished by adding a map of media type to validator function path to settings.
The path will be resolved and imported as a function just like with the limiters.
System administrators should be able to create and add additional media-type validators with more specific constraints. A validator should be a callable
(stream, properties={}) -> None
which raises aValidationError
if the validation does not succeed. It can be accomplished by adding a map of media type to validator function path to settings. The path will be resolved and imported as a function just like with the limiters.