Defining enum for array in Swagger 2.0
<pre><code>type": "array",
"items": {
    "type": "string",
    "enum": ["MALE","FEMALE","WORKER"]
}
</code></pre>

<p>or</p>

<pre><code>type": "array",
"items": {
    "type": "string",
},
"enum": ["MALE","FEMALE","WORKER"]
</code></pre>

<p>?</p>

<p>Nothing in the spec about this. The goal is of course to get swagger-ui to show the enum values.</p>