mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-07 16:33:10 -05:00
refactor(backend): ♻️ Split Recipe Schema Code
This commit is contained in:
13
mealie/schema/recipe/request_helpers.py
Normal file
13
mealie/schema/recipe/request_helpers.py
Normal 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"}
|
||||
Reference in New Issue
Block a user