swagger-py-codegen icon indicating copy to clipboard operation
swagger-py-codegen copied to clipboard

can not generate file upload in swagger html??

Open xiaomujiang opened this issue 3 years ago • 0 comments

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?

xiaomujiang avatar Feb 21 '22 10:02 xiaomujiang