prisma-class-generator
prisma-class-generator copied to clipboard
Update swagger decorator Json type mapping
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
Objectfor typeJsoninstead of typescript types
@kimjbstar at your convenience 🙏