All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- removed class validator
@IsJSON()
fromCreateDTO
andUpdateDTO
for fields withJson
type, because request body is already parsed and the respective property is not a JSON string anymore
- if entity prefix/suffix is specified, relation input DTOs are named incorrectly (occurs if tags like @DtoRelationCanConnectOnCreate are used)
- escape aposthrophe
'
with\'
, otherwise string generation breaks
- field with attribute
@default("")
resulted in emptydefault
value:@Apiproperty({ default: })'
- parsed apiProperties were propagated to other DTOs
- optionally add validation decorators from
class-validator
- config
outputType
to generate DTOs asclass
or asinterface
- missing import of
ApiProperty
- flag
flatResourceStructure
to flatten the subfolders ifoutputToNestJsResourceStructure
istrue
- flag
noDependencies
to output DTOs without any imports and decorators from external dependencies (useful to generate DTOs for frontend) @example
annotation adds example to@ApiProperty()
- missing
import
ofApiProperty
if only type-format annotations
- generate plain
DTO
classes (same as entity classes, but without relation fields)
- default values are added to the
@ApiDecorator()
only in theCreateDTO
andUpdateDTO
classes
- omit
@ApiProperty()
annotations for connect-dto classes
- add default value (if any) to
@ApiProperty()
- process additional documentation tags to generate
@ApiProperty()
decorator - translate prisma type to schema object type and format
- upgrades prisma dependencies to their latest 3.x versions
- Generated code imports using \ instead of / (#10)
- upgrades prisma dependencies to their latest 3.x versions
- applies available minor and patch updates to dependencies