1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-22 22:59:41 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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