Validation: default values on enum fields should be valid for the enum #959
Labels
tech/engines/datamodel
Issue about parsing/validation/rendering of the Prisma schema
tech/engines
Issue for tech Engines.
Milestone
The following schema currently (2.3.0) passes validation:
We do not validate that the
@default()
expression on theCat.mood
field is a variant of theCatMood
enum. I think we could and should validate this.The text was updated successfully, but these errors were encountered: