aboutsummaryrefslogtreecommitdiff
path: root/generalresearch/models/legacy/api_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'generalresearch/models/legacy/api_status.py')
-rw-r--r--generalresearch/models/legacy/api_status.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/generalresearch/models/legacy/api_status.py b/generalresearch/models/legacy/api_status.py
index 0422191..844dff5 100644
--- a/generalresearch/models/legacy/api_status.py
+++ b/generalresearch/models/legacy/api_status.py
@@ -12,7 +12,9 @@ from pydantic import BaseModel, Field
class StatusResponse(BaseModel):
status: Literal["success", "error"] = Field(
- description="The status of the API response.", examples=["success"]
+ description="The status of the API response.",
+ examples=["success"],
+ default="success",
)
msg: str | None = Field(
description="An optional message, if the status is error.",