Commit d4d6fd8
committed
fix(agent-config): use deserialize_optional_string for org_uuid
A UUID is hex + dashes; there is no legitimate numeric form a user
would supply. The previous deserializer (deserialize_string_or_int)
was a carry-over from the bottlecap copy, where it appears to have
been copy-pasted from the env/service/version pattern. Tightening to
deserialize_optional_string fail-fasts on misconfiguration instead of
silently coercing.1 parent 1d35f6c commit d4d6fd8
2 files changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
0 commit comments