Skip to content

Commit

Permalink
Content mediatype is hardcoded in api.mustache OpenAPITools#11511
Browse files Browse the repository at this point in the history
  • Loading branch information
cachescrubber committed Feb 5, 2022
1 parent 6cf4e79 commit 3849661
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ public interface {{classname}} {
{{/vendorExtensions.x-tags}}
responses = {
{{#responses}}
@ApiResponse(responseCode = "{{{code}}}", description = "{{{message}}}"{{#baseType}}, content = @Content(mediaType = "application/json", schema = @Schema(implementation = {{{baseType}}}.class)){{/baseType}}){{^-last}},{{/-last}}
@ApiResponse(responseCode = "{{{code}}}", description = "{{{message}}}"{{#baseType}}, content = {
{{#produces}}
@Content(mediaType = "{{{mediaType}}}", schema = @Schema(implementation = {{{baseType}}}.class)){{^-last}},{{/-last}}
{{/produces}}
}{{/baseType}}){{^-last}},{{/-last}}
{{/responses}}
}{{#hasAuthMethods}},
security = {
Expand Down

0 comments on commit 3849661

Please sign in to comment.