Skip to content

fix(config): match previous TrustedIssuersLists API output format - #113

Merged
wistefan merged 1 commit into
mainfrom
fix/api-format
Aug 19, 2026
Merged

fix(config): match previous TrustedIssuersLists API output format#113
wistefan merged 1 commit into
mainfrom
fix/api-format

Conversation

@Mortega5

Copy link
Copy Markdown
Collaborator

TrustedIssuersLists was serializing as a list of {type,url} objects in API responses, changing the previously exposed shape. Add MarshalJSON so it always outputs a plain list of endpoint URLs, matching the prior format, while UnmarshalJSON keeps accepting both formats to avoid breaking existing callers that already send the structured shape.

@Mortega5
Mortega5 requested a review from wistefan August 17, 2026 11:32
@Mortega5 Mortega5 added the patch Should be applied for dependency updates and small bugfixes. label Aug 17, 2026
TrustedIssuersLists was serializing as a list of {type,url} objects in API
responses, changing the previously exposed shape. Add MarshalJSON so it
always outputs a plain list of endpoint URLs, matching the prior format,
while UnmarshalJSON keeps accepting both formats to avoid breaking existing
callers that already send the structured shape.
@wistefan
wistefan merged commit 25dad17 into main Aug 19, 2026
17 checks passed
@wistefan
wistefan deleted the fix/api-format branch August 19, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Should be applied for dependency updates and small bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants