You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 api and it doesn't seem to be something with direct documentation.
To try to reproduce, I used a file like this
from marshmallow import Schema, fields
import hug
class TestingSchema(Schema):
a = fields.Integer(required=True)
b = fields.Integer(required=True)
c = fields.Integer()
@hug.route.post('/test')
def test_validation(body: TestingSchema()):
return True, '', body
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
The text was updated successfully, but these errors were encountered: