如何在我的YAML Swagger定义中将属性类型定义为字符串的列表(列表,集合,数组,集合)

Vih*_*ung 8 collections yaml swagger

我正在为API编写一个昂首阔步的定义文件.API是用于GET请求的

/path/to/my/api:
  get:
    summary: My Custom API
    description: |
      Gets a List of FooBar IDs
    produces:
      - application/json
    tags:
      - FooBar
    responses:
      "200":
        description: successful operation
        schema:
          $ref: "#/definitions/MyCustomType"         
Run Code Online (Sandbox Code Playgroud)

...

MyCustomType:
  type: object
  properties: 
    myCustomObject
      type: ??? # list of string?
Run Code Online (Sandbox Code Playgroud)