device id should be integer
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-19 22:34:41 +02:00
parent 3563234d70
commit c78d987c72

View File

@ -21,11 +21,11 @@ class SampleSchema(ma.Schema):
""" """
Parameters: Parameters:
- date (date) - date (date)
- device_id (str) - device_id (int)
""" """
date = fields.DateTime(required=True) date = fields.DateTime(required=True)
device_id = fields.Str(required=True) device_id = fields.Integer(required=True)
class SampleMetadataSchema(ma.SQLAlchemyAutoSchema): class SampleMetadataSchema(ma.SQLAlchemyAutoSchema):