Enums not validated on marshal
Abierto
- Lenguaje dominante
- Go
- Estrellas
- 10.8k
- Forks
- 1.3k
- Merge medio
- 2 d 36 min
- PR fusionados (30 d)
- 26
Descripción
### What happened?
Enums are validated on unmarshal, but not on marshal
### What did you expect?
I'd expect validation in both cases
### versions
- v0.17.9
- go1.19.1
I'm thinking of proposing a change to add a validate check in marshal https://github.com/99designs/gqlgen/blob/master/plugin/modelgen/models.gotpl#L99. Thoughts?
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.