Skip to content

Commit b37fbe4

Browse files
chore: document audit-log invalid-details fallback behavior
Agent-Logs-Url: https://github.com/bg-playground/BGSTM/sessions/3175915d-c82b-4f26-8b4e-82c07991f9dc Co-authored-by: bg-playground <259109604+bg-playground@users.noreply.github.com>
1 parent 46721ef commit b37fbe4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/app/schemas/audit_log.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def _normalize_details(cls, value: Any) -> dict[str, Any] | None:
3232
try:
3333
parsed = json.loads(stripped)
3434
except json.JSONDecodeError:
35+
# Preserve invalid historical payloads as structured data instead of
36+
# failing audit-log reads for the entire response page.
3537
return {"raw": value}
3638
if isinstance(parsed, dict):
3739
return parsed

0 commit comments

Comments
 (0)