title: How to refer to an external JSON file containing response examples in Swagger?
body: <p>In my Swagger spec file, I want to return example responses, for that I can add <code>examples</code> in response. But that makes my spec file quite big and error prone. Is there a way to refer to a file containing JSON of an example object?</p>
  
  <p>I tried something like below but it doesn't seem to work.</p>
  
  <pre><code>get:
    tags:
      - businesses
    summary: Get Taxable Entities details 
    description: ''
    operationId: getTaxableEntities
    produces:
      - application/json
    parameters:
      - name: business_id
        in: path
        required: true
        type: integer
        format: int32
      - name: gstIn
        in: query
        required: false
        type: integer
        format: int32
    responses:
      '200':
        description: Taxable Entities
        schema:
          type: file
          default:
            $ref: taxable_entity_example.json
      '401':
        description: You are not authorised to view this Taxable Entity
  </code></pre>