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

Errors from Nested fields are ignored #528

Closed
tvuotila opened this Issue Sep 14, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@tvuotila
Contributor

tvuotila commented Sep 14, 2016

Example:

from marshmallow import Schema, fields

class A(Schema):
    name = fields.Integer()

class B(Schema):
    user = fields.Nested(A)

# Has no errors
B().dump({'user': {'name': 'a'}})

# Has errors {'name': ['Not a valid integer.']}
A().dump({'name': 'a'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment