title: how to write swagger document for nested objects
body: <p>this document is ready for Nodejs create API, how to write swagger document for nested objects.
  Here below is my full swagger document code. but it doesn't show user object. help me to fix the issue</p>
  <pre><code>@swagger
  /api/v1/employees/add:
    post:
      tags:
        - Employees
      summary: &quot;Create a new employee&quot;
      description:  
      produces:
        - application/json
      security:
       - api_key: []
       - api_token : [] 
      parameters:
        - name: body
          in: body
          description:
          required: true
          schema:
              type: &quot;object&quot;
              properties:
                employee_code:
                 type: &quot;string&quot;
                mobilenumber:
                 type: &quot;string&quot;
                firstname:  
                 type: &quot;string&quot;
                lastname:
                 type: &quot;string&quot;
                emailid:
                 type: &quot;string&quot;
                is_login_enabled:
                 type: &quot;boolean&quot;
                address_line1:  
                 type: &quot;string&quot;
                address_line2:
                 type: &quot;string&quot;
                town:
                 type: &quot;string&quot;
                city:
                 type: &quot;string&quot;
                state:  
                 type: &quot;string&quot;
                pincode:
                 type: &quot;string&quot;
                designation:
                 type: &quot;string&quot;
                joining_date:
                 type: &quot;string&quot;
                 format: &quot;date-time&quot;
                releiving_date:
                 type: &quot;string&quot;
                 format: &quot;date-time&quot;
                is_active:  
                 type: &quot;boolean&quot;
                account_id:  
                 type: &quot;number&quot;
          user:
              type: &quot;object&quot;
              properties:
                username:
                 type: &quot;string&quot;   
                role_id:
                 type: &quot;number&quot;
                reference_object:  
                 type: &quot;string&quot;
                 example: &quot;employees&quot;
                password:
                 type: &quot;string&quot;
                password_secret:
                 type: &quot;string&quot;
      responses:
        200:
          description: Employee created successfully
        204:
          description: No data found
  </code></pre>
  <p>here is the snap of swagger ui
  <img src="https://i.stack.imgur.com/LIZWp.png" alt="image" /></p>