From acbc46d658b00c22f850b3d9630a7720251c4180 Mon Sep 17 00:00:00 2001 From: sauravniraula Date: Thu, 17 Jul 2025 07:45:35 +0545 Subject: [PATCH] fix(fastapi): makes notes required with default to fix type null in schema issue --- servers/fastapi/api/utils/variable_length_models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/fastapi/api/utils/variable_length_models.py b/servers/fastapi/api/utils/variable_length_models.py index 4c8d1c43..b1ff1cb9 100644 --- a/servers/fastapi/api/utils/variable_length_models.py +++ b/servers/fastapi/api/utils/variable_length_models.py @@ -23,7 +23,8 @@ def get_presentation_markdown_model_with_n_slides(n_slides: int): min_length=10, max_length=50, ) - notes: Optional[List[str]] = Field( + notes: List[str] = Field( + default=[], description="Important notes for the presentation styling and formatting", min_length=0, max_length=10,