Skip to content

Validation of complex enum values causes panic #646

@fenollp

Description

@fenollp
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions