You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cookie-api/cookie_api/schema.py

13 lines
351 B
Python

from marshmallow import Schema, fields
class CookieSchema(Schema):
id = fields.Int()
created_date = fields.DateTime()
modified_date = fields.DateTime()
name = fields.Str(required=True)
recipe_url = fields.Str()
sku = fields.Str(required=True)
qoh = fields.Int(required=True)
unit_cost = fields.Decimal(required=True)