Skip to content

can not generate file upload in swagger html?? #154

Open
@xiaomujiang

Description

@xiaomujiang
post:
  tags:
    - pet
  summary: uploads an image
  operationId: uploadFile
  parameters:
    - name: petId
      in: path
      description: ID of pet to update
      required: true
      schema:
        type: integer
        format: int64
  requestBody:
    content:
      multipart/form-data:
        schema:
          properties:
            additionalMetadata:
              type: string
              description: Additional data to pass to server
            file:
              type: string
              description: file to upload
              format: binary

define api.yml ,use post to upload a file, but generate the web , it not upload file button
can you help me to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions