mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-20 04:14:32 +09:00
Generated API types have a pointer-receiver MarshalJSON that omits unset optional fields. The CLI marshalled them by value, so stdlib reflection called Opt*.MarshalJSON directly and failed with "unexpected end of JSON input", breaking every -o json/-o yaml command. Make values addressable first so the generated marshaler runs.