Skip to content

FlexPeerRemoteEndpoint services show fake values in interlink_services #11

@sebastian-pazmay

Description

@sebastian-pazmay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions