Sounds like the source of truth for the enum members may have been in the database.
(But yes, exhaustiveness checking for sum types is a great feature.)
(But yes, exhaustiveness checking for sum types is a great feature.)
I do think this is a level of indirection myself; if the generated code was perfect and always in sync, that would be one thing, but by definition it is not the case.