title: How to add multiple example values in swagger properties?
body: <p>I am using Swagger OpenAPI Specification tool, I have a string array property in one of the definitions as follows :</p>
  
  <pre><code>cities:
          type: array
          items:
            type: string
            example: "Pune"
  </code></pre>
  
  <p>My API produce JSON result so for above object following result appears in response :</p>
  
  <pre><code>{
    "cities": [
      "Pune"
    ]
  }
  </code></pre>
  
  <p>Tried comma separated strings like below :</p>
  
  <pre><code>cities:
              type: array
              items:
                type: string
                example: "Pune", "Mumbai", "Bangaluru"
  </code></pre>
  
  <p>Expecting result as :</p>
  
  <pre><code>{
        "cities": [
          "Pune",
          "Mumbai",
          "Bangaluru"
        ]
      }
  </code></pre>
  
  <p>But the editor shows error. "Bad indentation"</p>
  
  <p>I want to give multiple values to the example tag is there any way ? </p>
  
  <p><strong>Update</strong></p>
  
  <p>User Helen below has given correct answer I had indentaion problem hence there were nested arrays ( 2d arrays )</p>
  
  <p>Correct way : </p>
  
  <pre><code>cities:
          type: array
          items:
            type: string
          example: 
          - Pune
          - Mumbai
  </code></pre>
  
  <p>My way ( Which was wrong )</p>
  
  <pre><code>cities:
          type: array
          items:
            type: string
            example: 
            - Pune
            - Mumbai
  </code></pre>
  
  <p>Look for indentation of <code>example</code> tag in above two cases which makes the difference, Its YAML indentation matters.</p>