25 lines
425 B
Python
25 lines
425 B
Python
|
#!/usr/bin/env python3
|
||
|
from marshm import ma
|
||
|
from marshmallow import fields
|
||
|
|
||
|
|
||
|
"""
|
||
|
Marshmallow schemas
|
||
|
"""
|
||
|
|
||
|
__author__ = "@tormakris"
|
||
|
__copyright__ = "Copyright 2020, onSpot Team"
|
||
|
__module_name__ = "schemas"
|
||
|
__version__text__ = "1"
|
||
|
|
||
|
|
||
|
class UserSchema(ma.Schema):
|
||
|
"""
|
||
|
Parameters:
|
||
|
- name (string)
|
||
|
- passowrd (string)
|
||
|
"""
|
||
|
|
||
|
name = fields.String(required=True)
|
||
|
password = fields.String(required=True)
|