mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-17 19:29:17 +00:00
[jaxrs-resteasy] multiple values for @Produces annotation are separated by a comma (#445)
* fix: The values for @Produces annotation were not separated by a comma. * Add test case for #443
This commit is contained in:
committed by
Jérémie Bresson
parent
960412a9b4
commit
d6e950f681
@@ -4033,6 +4033,11 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
mediaType.put("hasMore", null);
|
||||
}
|
||||
|
||||
if (!codegenOperation.produces.isEmpty()) {
|
||||
final Map<String, String> lastMediaType = codegenOperation.produces.get(codegenOperation.produces.size() - 1);
|
||||
lastMediaType.put("hasMore", "true");
|
||||
}
|
||||
|
||||
codegenOperation.produces.add(mediaType);
|
||||
codegenOperation.hasProduces = Boolean.TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user