Skip to content

RequestBody.Content is not updated properly #212

@talamram

Description

@talamram

in V2

When I don't have a consumes property, I get the content of the previous action.
for example:

/pet/{petId}/upload: {
post: {
summary: "uploads an image",
description: "",
operationId: "uploadFile",
consumes: ["multipart/form-data"],
produces: ["application/json"],
parameters: [{
{
name: "file",
in: "formData",
description: "file to upload",
required: false,
type: "file"
}]
}
},
/store/inventory: {
get: {
tags: ["store"],
summary: "Returns by status",
description: "Returns a map of status codes to quantities",
operationId: "getInventory",
produces: ["application/json"],
parameters: []
}
}

The RequestBody.Content that I get for the second action is "multipart/form-data"

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