risen228 / nestjs-zod-prisma

Zod Prisma fork for nestjs-zod
MIT License
62 stars 11 forks source link

Duplicate enum import #24

Open mohrazzak opened 7 months ago

mohrazzak commented 7 months ago

There is something wrong with nestjs-zod Here is an example explaining what i am talking about

model User {
firstEnum TestEnum
seondEnum TestEnum
}

enum TestEnum {
FIRST
SECOND
}

This is resulting duplicated import for the TestEnum in the User zod generated schema which is resulting to an error

import { TestEnum , TestEnum } from './enums';