title: How to reuse swagger definitions and remove some of the parameters in it?
body: <p>This is my code:</p>
  
  <pre><code>definitions:
    User:
      type: object
      properties:
        id:
          type: integer
        username:
          type: string
        first_name:
          type: string
        last_name:
          type: string
        password:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - username
        - first_name
        - last_name
        - password
  
  /api/users:
    post:
      description: Add a new user
      operationId: store
      parameters:
        - name: user
          description: User object
          in: body
          required: true
          type: string
          schema:
            $ref: '#/definitions/User'
      produces:
        - application/json
      responses:
        "200":
          description: Success
          properties:
            success:
              type: boolean
            data:
              $ref: '#/definitions/User'
  </code></pre>
  
  <p>As you can see, in the post key under <code>/api/users</code> I used the <code>User</code> definition as my schema on it.</p>
  
  <p>I want to lessen my code so I reused the <code>User</code> definition as my schema. The problem here is that I do not need the <code>id</code>, <code>created_at</code> and <code>updated_at</code> fields.</p>
  
  <p>Is there a way to just inherit some of the fields except the fields mentioned? Also, I would love some suggestions to make it better since I'm trying to learn swagger. Thank you.</p>