File tree Expand file tree Collapse file tree
modules/openapi-generator/src
main/resources/JavaSpring
test/java/org/openapitools/codegen/java/spring Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public interface {{classname}} {
128128{ {/jdk8-default -interface} }
129129{ {#operation} }
130130
131- public static final String PATH_{ {#lambda.uppercase} }{ {#lambda.snakecase} }{ {{operationId} }}{ {/lambda.snakecase} }{ {/lambda.uppercase} } = "{ {{path} }}";
131+ String PATH_{ {#lambda.uppercase} }{ {#lambda.snakecase} }{ {{operationId} }}{ {/lambda.snakecase} }{ {/lambda.uppercase} } = "{ {{path} }}";
132132 /**
133133 * { {httpMethod} } { {{path} }}{ {#summary} } : { {.} }{ {/summary} }
134134 { {#notes} }
Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ public void testRequestMappingAnnotation() throws IOException {
11711171 // Check that the @RequestMapping annotation is generated in the Api file
11721172 JavaFileAssert .assertThat (files .get ("PetApi.java" ))
11731173 .fileContains ("@RequestMapping(\" ${openapi.openAPIPetstore.base-path:/v2}\" )" ,
1174- "public static final String PATH_ADD_PET = \" /pet\" ;" ,
1174+ "String PATH_ADD_PET = \" /pet\" ;" ,
11751175 "value = PetApi.PATH_ADD_PET" );
11761176
11771177 // Check that the @RequestMapping annotation is not generated in the Controller file
You can’t perform that action at this time.
0 commit comments