zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[BUG] Enum with "DateTime" Value

Open francistogram opened this issue 1 year ago • 0 comments

I have an enum with values from Webflow's API with all of the possible types

enum WebflowFieldType {
  Image
  RichText
  Link
  Switch
  Reference
  PlainText
  VideoLink
  MultiImage
  Email
  Phone
  Number
  Option
  Color
  DateTime // Error is here
  File
  MultiReference
}

this worked in prisma.schema but with schema.zmodel I get this error

schema.zmodel:2344:3 - Expecting token of type '}' but found `DateTime`.
image

Seems like a bug cause there's no reason I shouldn't be able to have an enum named "DateTime" and it works in Prisma directly

francistogram avatar May 01 '24 13:05 francistogram