Vihung Vihung - 4 months ago 21
YAML Question

How can I define a property type as being a list (list, set, array, collection) of string in my YAML Swagger definition

I am writing a swagger definition file for an API. The API is a for a GET request

/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"


...

MyCustomType:
type: object
properties:
myCustomObject
type: ??? # list of string?

Answer
Comments