refactor(backend): ♻️ Split Recipe Schema Code

This commit is contained in:
hay-kot
2021-08-27 20:17:41 -08:00
parent 5ba337ab11
commit 0675c570ce
25 changed files with 494 additions and 120 deletions

View File

@@ -0,0 +1,13 @@
from fastapi_camelcase import CamelModel
from pydantic import BaseModel
# TODO: Should these exist?!?!?!?!?
class RecipeSlug(CamelModel):
slug: str
class SlugResponse(BaseModel):
class Config:
schema_extra = {"example": "adult-mac-and-cheese"}