Commit e5f01a1
authored
fix: handle unknown metric types in API responses (#40)
* fix: handle unknown metric types in API responses
Add serde(other) catch-all variant to MetricType enum so the CLI
gracefully handles new metric types added to the backend API without
crashing on deserialization.
* fix: display unknown metric types as BUILT_IN1 parent b97d894 commit e5f01a1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| 101 | + | |
98 | 102 | | |
99 | 103 | | |
100 | 104 | | |
| |||
0 commit comments