Forum Discussion

ubaidshahid's avatar
New Contributor
3 years ago

@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.

No RepliesBe the first to reply