Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: ensure all enumeration types implement UnmarshalText #515

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

xenoscopic
Copy link
Member

What does this pull request do and why is it needed?

This PR ensures all types in pkg/api/models implement JSON decoding.

We want these types to be able to decode incoming JSON, but there were a few enumeration types that didn't implement UnmarshalText (implicitly or otherwise).

We want these types to be able to decode incoming JSON, but there were a
few enumeration types that didn't implement UnmarshalText (implicitly or
otherwise).

Signed-off-by: Jacob Howard <jacob@mutagen.io>
@xenoscopic xenoscopic merged commit e8911b2 into master Oct 18, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant