swagger response array of objects example
Example 1: swagger array object example
drivers:
type: array
items:
type: object
properties:
firstName:
type: string
lastName:
type: string
identification:
type: string
identificationType:
type: string
license:
type: string
licenseExpiration:
type: string
format: date-time
licenseFront:
type: string
licenseBack:
type: string
icFront:
type: string
icBack:
type: string
Example 2: how to add array of objects in swagger 2.0
Array in swagger