It’s not supported yet. See 
https://github.com/swagger-api/swagger-ui/issues/3641.

 

 

 

From: <[email protected]> on behalf of easyhond 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Monday, November 20, 2017 at 00:03
To: Swagger <[email protected]>
Subject: SwaggerUI OpenAPI 3.0 just can't upload a file

 

Hi! 

   when i work with SwaggerUI OpenAPI 3.0, i just can't upload a file with it.

   I have defined content in the Yaml fil, but  the upload file button just 
don't show up. Here's my Yaml content:

   

openapi: 3.0.0

info:

  title: Sample API

  description: Optional multiline or single-line description in 
[CommonMark](http://commonmark.org/help/) or HTML.

  version: "1.2"

  

paths:

  /add:

    post:

      summary: upload a file

      description: upload a file

      requestBody:

        content: 

          multipart/form-data: # Media type

            schema: # Request payload

              type: object

              properties: # Request parts

                id: # Part 1 (string value)

                  type: string

                  format: uuid

                address: # Part2 (object)

                  type: object

                  properties:

                    street:

                      type: string

                    city:

                      type: string

                profileImage: # Part 3 (an image)

                  type: string

                  format: binary

 

 

Any idea of it? Thanks very much.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to