Skip to content

fix: marshal convertLicenses() into a [] instead of nil - #22366

Merged
jakehwll merged 2 commits into
mainfrom
jakehwll/licenses-json-marshalling
Feb 27, 2026
Merged

jakehwll merged 2 commits into
mainfrom
jakehwll/licenses-json-marshalling

Conversation

@jakehwll

Copy link
Copy Markdown
Contributor

This was a bad smell that was being addressed by the frontend. This type was generating out to be a nil/null instead of an empty License[]. Now this returns as an empty array and we can actively check if we have no licenses with a length of 0.

@jakehwll
jakehwll merged commit a51eb40 into main Feb 27, 2026
26 of 28 checks passed
@jakehwll
jakehwll deleted the jakehwll/licenses-json-marshalling branch February 27, 2026 13:23
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants