diff options
| author | Nick Khyl <nickk@tailscale.com> | 2024-10-29 11:24:46 -0500 |
|---|---|---|
| committer | Nick Khyl <1761190+nickkhyl@users.noreply.github.com> | 2024-10-30 12:50:29 -0500 |
| commit | 2a2228f97b625b20f5d62092b9f17730078a7fb4 (patch) | |
| tree | b159bd802b37220f2592d80ea9eb87a079d5bdec /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 2cc1100d242df512612781187eaa898d0de133dc (diff) | |
| download | tailscale-2a2228f97b625b20f5d62092b9f17730078a7fb4.tar.xz tailscale-2a2228f97b625b20f5d62092b9f17730078a7fb4.zip | |
util/syspolicy/setting: make setting.RawItem JSON-marshallable
We add setting.RawValue, a new type that facilitates unmarshalling JSON numbers and arrays
as uint64 and []string (instead of float64 and []any) for policy setting values.
We then use it to make setting.RawItem JSON-marshallable and update the tests.
Updates #12687
Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
