Skip to content

Commit

Permalink
Update router function name, fix Time class
Browse files Browse the repository at this point in the history
  • Loading branch information
juancgalvis committed Dec 5, 2023
1 parent 0043a93 commit 98db9ec
Show file tree
Hide file tree
Showing 23 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ dependencies {
implementation 'com.google.googlejavaformat:google-java-format:1.18.1'

// implementation 'io.openapiprocessor:'
implementation 'io.openapiprocessor:openapi-processor-spring:2023.4'
// implementation 'io.openapiprocessor:openapi-processor-spring:2023.4'

api 'commons-io:commons-io:2.12.0'
api gradleApi()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public WebFluxCodegen() {

@Override
public String getDefaultTemplateDir() {
return "entry-point/rest-with-swagger";
return "entry-point/rest-from-swagger";
}

@Override
Expand Down Expand Up @@ -47,6 +47,7 @@ public void processOpts() {
apiTestTemplateFiles.clear(); // TODO: implement it
apiDocTemplateFiles.clear();
apiTemplateFiles.clear();
importMapping.put("OffsetDateTime", "java.time.OffsetDateTime");
if (((Boolean) additionalProperties.getOrDefault("router", false))) {
apiTemplateFiles.put("apiHandler.mustache", "Handler.java");
apiTemplateFiles.put("apiRouter.mustache", "Router.java");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class {{classname}}Router {
{{/lombok}}

@Bean
public RouterFunction<ServerResponse> routerFunction({{classname}}Handler handler) {
public RouterFunction<ServerResponse> routerFunction{{classname}}({{classname}}Handler handler) {
{{#operation}}
{{#@first}}
{{#contents}}
Expand Down

0 comments on commit 98db9ec

Please sign in to comment.