add back marshmallow
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-03-31 17:32:04 +02:00
parent 479ca0f44d
commit bc81a65fea
6 changed files with 60 additions and 26 deletions

25
src/schemas.py Normal file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env python3
from marshmallow import Schema, fields
"""
Schemas of input objects
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, Birbnetes Team"
__module_name__ = "schemas"
__version__text__ = "1"
class SampleSchema(Schema):
""" /v1/email/pay - POST
Parameters:
- date (date)
- device_id (str)
"""
date = fields.Date(required=True)
device_id = fields.Str(required=True)