CICD/app/widget/schema.py

10 lines
238 B
Python
Raw Normal View History

2019-05-18 19:00:13 +02:00
from marshmallow import fields, Schema
class WidgetSchema(Schema):
2019-08-03 18:55:38 +02:00
"""Widget schema"""
2019-05-18 19:00:13 +02:00
2019-08-03 18:55:38 +02:00
widgetId = fields.Number(attribute="widget_id")
name = fields.String(attribute="name")
purpose = fields.String(attribute="purpose")