prisma-class-generator icon indicating copy to clipboard operation
prisma-class-generator copied to clipboard

Update swagger decorator Json type mapping

Open ashenm opened this issue 1 year ago • 1 comments

Fixes

unexpected error occured
SyntaxError: '(' expected. (27:46)
  25 |  external_id: string 
  26 | 
> 27 |  @ApiProperty({type: Record<string, unknown> | unknown[] | boolean | string | number | null})
     |                                              ^
  28 |  metadata: Record<string, unknown> | unknown[] | boolean | string | number | null 
  29 | 
  30 | }

Proposed Changes

  • For swagger decorator, use Object for type Json instead of typescript types

ashenm avatar Aug 12 '24 11:08 ashenm

@kimjbstar at your convenience 🙏

ashenm avatar Aug 12 '24 11:08 ashenm