Brakebein / prisma-generator-nestjs-dto

Generates NestJS DTO classes from Prisma Schema
Apache License 2.0
48 stars 26 forks source link

Add names to Enums #52

Open Serpentarius13 opened 1 month ago

Serpentarius13 commented 1 month ago

According to that, for reusable enum generation (which would fix generating tons of exactly-the-same-not-compatible-with-eachother-enums on frontend), we need to add enumName property to ApiProperty. I think we can do it now fairly easily, because the name of enums could match import exactly. Otherwise, on every route there's a new enum and its literally unusable

p.s. I wonder what should I do to contribute? What's the process? @Brakebein

Brakebein commented 1 month ago

enumName is now added to ApiProperty. Please checkout 1.24.0-beta1.

Serpentarius13 commented 1 month ago

Thanks!