You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
can we add a confg like generateDTO for swagger to add api property
generatorzod{provider="nestjs-zod-prisma"output="./src/zod"// (default) the directory where generated zod schemas will be savedrelationModel=true// (default) Create and export both plain and related models.// relationModel = "default" // Do not export model without relations.// relationModel = false // Do not generate related modelgenerateDto=true// (default) Generate DTOs for NestJSgenerateSwaggerApiProperty=true// (default) Genrate ApiPrpoertyDecorator on DTO's...
From schema.prisma
modelUser{idString @id/// @z.string()emailString @unique/// @z.string().email() @ApiProperty({ example: '[email protected]', description: 'User email' })full_nameString @unique/// @z.string().max(50, { message: "Fullname should be less than 50 characters " }) @ApiProperty({ example: 'Jean Doe', description: 'Users full name' })passwordString @unique/// @z.password().atLeastOne('digit').atLeastOne('lowercase').atLeastOne('uppercase').min(8).max(100) @ApiProperty({ description: 'User password' })}
Also desire this =D
There are some interesting behaviors from this other generator that could be included, like @DtoReadOnly and creations of Create / Update dtos
can we add a confg like generateDTO for swagger to add api property
From
schema.prisma
To Generate
example
The text was updated successfully, but these errors were encountered: