backend/src/schemas/userschema.py

25 lines
445 B
Python

#!/usr/bin/env python3
from flaskaddons.marshm import ma
from marshmallow import fields
"""
User Masrshmallow schema
"""
__author__ = "@tormakris"
__copyright__ = "Copyright 2020, onSpot Team"
__module_name__ = "userschema"
__version__text__ = "1"
class UserSchema(ma.Schema):
"""
Parameters:
- name (string)
- passowrd (string)
"""
name = fields.String(required=True)
password = fields.String(required=True)