title: swagger 3/OAS 3 submit file data along with regular data mutlipart request
body: <p>I have the following swagger code addCustomer for sending a request that includes an image along with other json data. When I run code from swagger hub; it just sends json. Am I defining this right? Shouldn't it send multipart request?</p>
  
  <pre><code>post:
    tags:
      - customers
    summary: Add a new customer to the store
    description: ''
    operationId: addCustomer
    requestBody:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NewCustomerWithImageUrl'
        application/xml:
          schema:
            $ref: '#/components/schemas/NewCustomerWithImageUrl'
        multipart/form-data:
          schema:
            $ref: '#/components/schemas/NewCustomerWithImage'
      description: Customer object that needs to be added to the store
      required: true
  
  
  NewCustomerWithImage:
    type: object
    allOf:
      - $ref: '#/components/schemas/NewCustomer'
    properties:
      Image:
        type: string
        format: binary
  
  Person:
    type: object
    required:
      - first_name
    properties:
      first_name:
        type: string
        example: John
      last_name:
        type: string
        example: Doe
      email:
        type: string
        example: john@example.com
      phone_number:
        type: string
        example: 555-555-5555
      address_1:
        type: string
        example: 123 Nowhere Street
      address_2:
        type: string
        example: Apartment 123
      city:
        type: string
        example: Rochester
      state:
        type: string
        example: New York
      zip:
        type: string
        example: '14445'
      country:
        type: string
        example: United States
      comments:
        type: string
        example: A great customer
      custom_fields:
        type: object
        minProperties: 0
        maxProperties: 10
        additionalProperties:
          type: string
        example:
          secondary phone number: '555-555-5555'
  NewCustomer:
    type: object
    allOf:
      - $ref: '#/components/schemas/Person'
    properties:
      company_name:
        type: string
        example: PHP Point Of Sale
      tier_id:
        type: integer
        format: uuid
        example: 0
      account_number:
        type: string
        example: '3333'
      taxable:
        type: boolean
        example: false
      tax_certificate:
        type: string
        example: '1234'
      override_default_tax:
        type: boolean
        example: false
      tax_class_id:
        type: integer
        format: uuid
        example: 0
      balance: 
        type: number
        format: float
        example: 22.99
      credit_limit:
        example: null
      points:
        type: integer
        format: int32
        example: 333
      disable_loyalty:
        type: boolean 
        example: true
      amount_to_spend_for_next_point:
        type: number
        format: float
        readOnly: true
        example: 10.00
      remaining_sales_before_discount:
        type: integer
        format: int32
        readOnly: true
        example: 0
    xml:  
      name: Customer
  </code></pre>
  
  <p>Json sent:</p>
  
  <pre><code>{"first_name":"John","last_name":"Doe","email":"john@example.com","phone_number":"555-555-5555","address_1":"123 Nowhere Street","address_2":"Apartment 123","city":"Rochester","state":"New York","zip":"14445","country":"United States","comments":"A great customer","custom_fields":{"secondary phone number":"555-555-5555"},"company_name":"PHP Point Of Sale","tier_id":0,"account_number":"3333","taxable":false,"tax_certificate":"1234","override_default_tax":false,"tax_class_id":0,"balance":22.99,"credit_limit":null,"points":333,"disable_loyalty":true,"Image":"string"}
  </code></pre>
  
  <p>Swagger Hub File:</p>
  
  <p><a href="https://app.swaggerhub.com/apis/PHP-Point-Of-Sale/PHP-Point-Of-Sale/1.0#/customers/addCustomer" rel="nofollow noreferrer">https://app.swaggerhub.com/apis/PHP-Point-Of-Sale/PHP-Point-Of-Sale/1.0#/customers/addCustomer</a></p>