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

Include a list of valid enum values if an invalid enum value is detected during config loading. #2635

Closed
mitchellh opened this issue Nov 9, 2024 · 0 comments · Fixed by #2637

Comments

@mitchellh
Copy link
Contributor

Discussed in #2578

Originally posted by jcollie November 2, 2024
As discussed on Discord earlier, it would be very helpful to include a list of valid enum values in the error message if an invalid enum value is detected during config loading. For simplicity's sake it would only be added for enum values at this time but in theory this could be extended in the future to cover more types.

https://discord.com/channels/1005603569187160125/1005603569711452192/1302333119277437039

Here's a sample of what this might look like:

image

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 a pull request may close this issue.

1 participant