chore: refactor base schema (#1098)

* remove dead backup code

* implmenet own base model

* refactor to use MealieModel instead of CamelModel

* cleanup deps
This commit is contained in:
Hayden
2022-03-25 10:56:49 -08:00
committed by GitHub
parent bcd98cba2f
commit 11b4d2389a
50 changed files with 253 additions and 623 deletions

View File

@@ -1,11 +1,12 @@
from fastapi_camelcase import CamelModel
from pydantic import UUID4, validator
from slugify import slugify
from mealie.schema._mealie import MealieModel
from ..recipe.recipe_category import CategoryBase, RecipeCategoryResponse
class CreateCookBook(CamelModel):
class CreateCookBook(MealieModel):
name: str
description: str = ""
slug: str = None