vegardit / prisma-generator-nestjs-dto

Generates NestJS DTO classes from Prisma Schema
Apache License 2.0
268 stars 73 forks source link

If a default value for a String field is `0x` the generator will put it as a number #260

Open krruzic opened 8 months ago

krruzic commented 8 months ago

and this fails because it expects a hex

ex)

  data       String?   @default("0x")
-> generates:
@ApiProperty({
  default: 0x
  })

causing a build error expected hexadecimal digit