We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
my error define:
errors = { 'ValidationError': { 'message': "param error", 'status': 400, } } api = Api(blueprint, catch_all_404s=True, errors=errors)
my marshmallow.schema
class Schema(ma.SQLAlchemyAutoSchema): url = ma.String(required=True, validate=[validate.Length(min=8, max=200)]) key = ma.String(required=True, validate=[validate.Length(min=2, max=32)])
def post(self): mySchema.load(request.json)
post data, and expect with the following errors(key min=2, max=32 ), but seems did not work..
[ {"url": "someurl", "key": ""} ]
errors expect to be:
{ "data": [ { "url": "someurl", "key": "", } ], "message": "param error", "status": 400 }
after I review the code, I add some code to deal with kind of issues..and hope to help those who encounter such problems like me
The text was updated successfully, but these errors were encountered:
No branches or pull requests
my error define:
my marshmallow.schema
post data, and expect with the following errors(key min=2, max=32 ), but seems did not work..
errors expect to be:
after I review the code, I add some code to deal with kind of issues..and hope to help those who encounter such problems like me
The text was updated successfully, but these errors were encountered: