fix(openapi): set explicit response_model for meals v2 get-by-id; plus security hardening and v2 endpoints

This commit is contained in:
jableader 2025-11-01 15:03:27 +11:00
parent 0411791ad9
commit 746a327d7d
2 changed files with 1058 additions and 147 deletions

View file

@ -67,6 +67,7 @@ async def get_upcoming_meals_scoped(
"/{meal_id}", "/{meal_id}",
operation_id="getMealV2", operation_id="getMealV2",
summary="Get a meal by id (scoped)", summary="Get a meal by id (scoped)",
response_model=meals.Meal,
responses={404: {"model": ProblemDetails}}, responses={404: {"model": ProblemDetails}},
) )
async def get_meal_scoped( async def get_meal_scoped(

File diff suppressed because it is too large Load diff