definitions:
  ImageFormat:
    enum:
      - gif
      - jpeg
      - png
    type: string
    x-ms-enum:
      modelAsString: true
      name: ImageType
info:
  title: test
  version: 0.0.1
paths:
  /foo:
    post:
      consumes:
        - multipart/form-data
      operationId: getFoo
      parameters:
        - in: formData
          name: name
          type: string
        - enum:
            - gif
            - jpeg
            - png
          in: formData
          name: format
          type: string
          x-ms-enum:
            modelAsString: true
            name: ImageType
        - format: binary
          in: formData
          name: image
          required: true
          type: string
      produces:
        - application/json
      responses:
        '200':
          description: Foo
          schema:
            type: object
      tags:
        - Foos
swagger: '2.0'
x-components: {}

