mirror of
https://git.vectorsigma.ru/public/headscale.git
synced 2026-08-08 16:18:26 +00: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.