Enum names must be validated that they are not using a reserved name #1052
Labels
tech/engines/datamodel
Issue about parsing/validation/rendering of the Prisma schema
tech/engines
Issue for tech Engines.
Milestone
While skimming our code i realized that we probably not validating the name of enums correctly. E.g. an enum with name
StringFilter
would be possible which would crash our schema building in the query engine. We should apply the same validation as for model names. Take a look atreserved_model_names.rs
.The text was updated successfully, but these errors were encountered: