Ask a Question

@RequestPart annotation issue

New Contributor

@RequestPart annotation issue

I am using the below annotation to show multipart file attribute on swagger-ui, which is working fine.
But issue starts where i need to show the required(*) symbol for file attribute on swagger-ui.

Here is how I am using @RequestPart annotation.

@RequestPart(value = "file", required=true) final Multipart file

But required property is not being applied, please suggest, how to add required symbol on any attribute using @RequestPart annotation.

Showing results for 
Search instead for 
Did you mean: