Skip to content

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