Specifying apimodel type for map value in swagger annotations
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023
05:32 AM
04-24-2023
05:32 AM
Specifying apimodel type for map value in swagger annotations
Hi all,
I am trying to specify api response type in swagger annotations in Java. Currently, the type is Map<sting, CustomClass>.
Using
@ApiResponse(code = 200, message = "request succeeded", response = Map.class) results into a schema where additionalProperties is Object type.
Whereas, I would like to use a ref to the CustomClass apimodel. How can I specify type of the Map value in swagger annotations?
Thanks!
Labels:
- Labels:
-
Swagger Codegen
-
Swagger Core
0 REPLIES 0
