Skip to content

fix: implement yaml methods for enums #8

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

Merged
merged 1 commit into from
Mar 18, 2024
Merged

fix: implement yaml methods for enums #8

merged 1 commit into from
Mar 18, 2024

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Mar 18, 2024

My tests are failing over at coder/coder#12566, enums are failing to marshal correctly, and this patch is what made it work on my branch when it was clibase.

My tests are failing over at coder/coder#12566, enums are failing to marshal correctly, and this patch is what made it work on my branch when it was `clibase`.
@Emyrk
Copy link
Member

Emyrk commented Mar 18, 2024

Just a comment, we could make the enum type just extend the Validate.

https://github.com/coder/serpent/blob/main/values.go#L30-L82

Doesn't really matter, but could not have to implement the marshal types again.

@f0ssel f0ssel requested a review from ammario March 18, 2024 16:37
@f0ssel f0ssel merged commit c842d75 into main Mar 18, 2024
@f0ssel f0ssel deleted the f0ssel/enum-yaml branch March 18, 2024 16:58
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.

3 participants