Ryan-Sin / swagger-nestjs-codegen

MIT License
20 stars 4 forks source link

Result code for integer field type #7

Open d9k opened 1 year ago

d9k commented 1 year ago

input

components:
   my_item:
      type: object
      properties:
        id:
          type: integer

output:

export class MyItemDto {
  @ApiProperty({
    description: '',
    required: false,
  })
  @IsOptional()
  @IsNumber()
  id?: integer;

integer is not a valid type name in typescript.