-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Milestone
Description
Using 2.1.3
Running swagger-codegen to generate api documentation, the static html output does not include form data parameters - like files
Steps to reproduce:
Run swagger codegen to generate a static html document
java -jar modules\swagger-codegen-cli\target\swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l html -o c:\petstore
The html document will not show the form data paramaters
The relevant section from the swagger.json file
"/pet/{petId}/uploadImage":{
"post":{
"tags":[
"pet"
],
"summary":"uploads an image",
"description":"",
"operationId":"uploadFile",
"consumes":[
"multipart/form-data"
],
"produces":[
"application/json"
],
"parameters":[
{
"name":"petId",
"in":"path",
"description":"ID of pet to update",
"required":true,
"type":"integer",
"format":"int64"
},
{
"name":"additionalMetadata",
"in":"formData",
"description":"Additional data to pass to server",
"required":false,
"type":"string"
},
{
"name":"file",
"in":"formData",
"description":"file to upload",
"required":false,
"type":"file"
}
],
"responses":{
"200":{
"description":"successful operation",
"schema":{
"$ref":"#/definitions/ApiResponse"
}
}
},
"security":[
{
"petstore_auth":[
"write:pets",
"read:pets"
]
}
]
}
},