Commit 90b881f
committed
fix(sovd_service_interface): handle status as object in list_entity_faults
When the gateway aggregates faults from a peer (rtmaps_medkit), the
aggregated fault carries status as a SOVD DTC object:
{"aggregatedStatus": "active", "confirmedDTC": "1", ...}
list_entity_faults previously called fault_json.value("status", string{})
which throws json::type_error.302 when status is an object.
Fix: check the type before extracting. Strings are passed through as-is.
Objects use the "aggregatedStatus" field if present.1 parent 67380be commit 90b881f
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
0 commit comments