mirror of
https://github.com/RustyRaptor/python-flask-react-crud-example.git
synced 2026-12-03 15:45:23 -07:00
12 lines
303 B
Python
12 lines
303 B
Python
from marshmallow import Schema, fields
|
|
|
|
class GithubRepoSchema(Schema):
|
|
id = fields.Int(required=True)
|
|
full_name = fields.Str()
|
|
language = fields.Str()
|
|
description = fields.Str()
|
|
html_url = fields.URL()
|
|
|
|
class KudoSchema(GithubRepoSchema):
|
|
user_id = fields.Email(required=True)
|