Skip to content

[BUG] Enum with "DateTime" Value #1399

@francistogram

Description

@francistogram

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions