Skip to content

Commit

Permalink
bugfix proposition | Changes in the api.mustache file
Browse files Browse the repository at this point in the history
  • Loading branch information
GlobeDaBoarder committed Jan 2, 2024
1 parent ad29963 commit af8b92a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@

<executions>
<execution>
<id>generate-without-template</id>
<id>generate-with-template</id>
<phase>generate-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>src/main/resources/openapi.yaml</inputSpec>
<templateDirectory>src/main/resources/templates</templateDirectory>
</configuration>
</execution>
</executions>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public interface {{classname}} {
{{#produces}}
@Content(mediaType = "{{{mediaType}}}", {{#isArray}}array = @ArraySchema({{/isArray}}schema = @Schema(implementation = {{{baseType}}}.class){{#isArray}}){{/isArray}}){{^-last}},{{/-last}}
{{/produces}}
}{{/baseType}}){{^-last}},{{/-last}}
}{{/baseType}}{{^baseType}}, content = @Content{{/baseType}}){{^-last}},{{/-last}}
{{/responses}}
}{{#hasAuthMethods}},
security = {
Expand Down

0 comments on commit af8b92a

Please sign in to comment.