Swagger POST 正文列表

Swagger POST body list

我一直在无果而终地搜索如何在 POST 主体中添加一个列表。我该怎么做?这是我拥有的:

/groups:
    post:
      summary: Creates a group
      parameters:
        - name: body
          in: body
          schema:
            properties:
              name:
                type: string
              description:
                type: string
              groupType:
                type: string
                enum: [ "open", "closed", "secret" ]
              users:
                type: string list # <--------- a list of strings
      responses:
        201:
          description: Group created
        default:
          description: Group creation failed

属性为字符串数组,请参考https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/test/resources/2_0/petstore.yaml#L660为例:

  photoUrls:
    type: array
    items:
      type: string