Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upbody validation can not take effect when body is None #830
Labels
Comments
|
@guozhihua12 I'm having a little trouble reproducing this. Would you mind updating with the full code you're using for a repo? For instance, I'm not exactly sure how you are defining To try to reproduce, I used a file like this
and then used POST requests like this
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from marshmallow import Schema, fields
class TestingSchema(Schema):
a = fields.Integer(required=True)
b = fields.Integer(required=True)
c = fields.Integer()
@api.route.post('/test')
def test_validation(body: TestingSchema()):
return True, '', body
when body is None
