Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass schema instance to error handlers #250

Merged
merged 1 commit into from Jul 15, 2018
Merged

Conversation

sloria
Copy link
Member

@sloria sloria commented Jul 15, 2018

  • @error_handler and handle_error receive schema instance
  • In Flask, the Schema instance is attached to HTTPExceptions and
    is accessible from error.data["schema"]

See marshmallow-code/marshmallow#840 (comment)

* @error_handler and handle_error receive schema instance
* In Flask, the Schema instance is attached to HTTPExceptions and
  is accessible from error.data["schema"]

See marshmallow-code/marshmallow#840 (comment)
@sloria sloria merged commit 90b822f into dev Jul 15, 2018
@sloria sloria deleted the flask-attach-schema-to-error branch July 15, 2018 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant