Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 469 Bytes

1320.newandimproved.rst

File metadata and controls

7 lines (7 loc) · 469 Bytes

The jsonschema.validate <falcon.media.validators.jsonschema.validate> decorator now raises an instance of ~falcon.MediaValidationError instead of the generic ~falcon.HTTPBadRequest for request media validation failures. Although the default behavior is kept unaltered in a backwards-compatible fashion (as the specialized exception subclasses the generic one), but it can now be easily customized by adding an error handler for the new class.