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

Validation of complex enum values causes panic #646

Closed
fenollp opened this issue Oct 24, 2022 · 0 comments · Fixed by #647
Closed

Validation of complex enum values causes panic #646

fenollp opened this issue Oct 24, 2022 · 0 comments · Fixed by #647

Comments

@fenollp
Copy link
Collaborator

fenollp commented Oct 24, 2022

enum:
- {}
- []
- 42

The first two enum values are not Go-comparable, so this comparison

if enum := schema.Enum; len(enum) != 0 {
for _, v := range enum {
if value == v {
return
}
}

crashes.

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