interlink_services decodes all items from GET /api/v1/service/ into the base Service schema. The FlexPeerRemoteEndpoint type lacks most base fields, so Go fills them with garbage:
name = "",
term = 0,
created_date = "0001-01-01T00:00:00Z"
These should have null instead in case they are empty.
Proposed fix: Handle special case it in the loop and map only the fields it has.
interlink_servicesdecodes all items fromGET /api/v1/service/into the baseServiceschema. TheFlexPeerRemoteEndpointtype lacks most base fields, so Go fills them with garbage:name = "",term = 0,created_date = "0001-01-01T00:00:00Z"These should have
nullinstead in case they are empty.Proposed fix: Handle special case it in the loop and map only the fields it has.