-
Notifications
You must be signed in to change notification settings - Fork 58
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
How to get errors when using validate ? #142
Comments
Initialize the SQLAlchemy and Marshmallow extensions, in that order. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi !
I am using flask-marshmallow for the first time and the lib looks great but I don't get what I am supposed to do to get an error when I try to validate an element with a missing field.
Here's a simplified version of the code :
This outputs
{}
while I would expect it to return an object listing errors.(Just in case, I also tried with
partial=True
andpartial=('id',)
, and I also tried to set thepartial
values at different places (schema definition and schema instanciation) but I get the same result)Could you please advice on what I am doing wrong ?
For information, here are the versions I use :
marshmallow==3.0.0rc8
marshmallow-sqlalchemy==0.17.0
flask-marshmallow==0.10.1
Flask-SQLAlchemy==2.4.0
SQLAlchemy==1.3.6
The text was updated successfully, but these errors were encountered: