Skip to content

Use array/list in the request payload #19

Description

@katiaSouza

Hi,

I don't know if it is possible, so I can do the same in the response payload.. my question is in relation of a request payload that has a list/array.

Example:

@RequestMapping(value = "/myuri", method = RequestMethod.POST)
public void category(Collection category)

The input in swagger should be:

[{
"categoryId": 123,
"categoryName": "My Category"
}]

But what ocurrs in swagger is:

{
"empty": "boolean"
}

Can you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions