Forum Discussion

mhosan's avatar
mhosan
New Member
2 years ago

Nestjs/swagger how to write nested properties with arrays?

How to write a Class with this? : 
movements:
          type: array
          items:
            type: object
            properties:
              merchant_name:
                description: Merchant's name
                type: string
                example: MERSARQRT Mi&CO
              merchant_code:
                type: string
                example: MER003
              amount:
                example: 100.01
                type: number
                format: double