We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c82ab3 + 8e5ec93 commit dd65687Copy full SHA for dd65687
changelog_entry.yaml
@@ -0,0 +1,4 @@
1
+- bump: patch
2
+ changes:
3
+ changed:
4
+ - Make error_message optional within report service
policyengine_api/routes/report_output_routes.py
@@ -157,10 +157,6 @@ def update_report_output(country_id: str) -> Response:
157
if status == "complete" and output is None:
158
raise BadRequest("output is required when status is 'complete'")
159
160
- # Validate that error status has error_message
161
- if status == "error" and error_message is None:
162
- raise BadRequest("error_message is required when status is 'error'")
163
-
164
try:
165
# First check if the report output exists
166
existing_report = report_output_service.get_report_output(report_id)
0 commit comments