Skip to content

Commit ef9c9e1

Browse files
committed
public static final String PATH_
1 parent 1240d10 commit ef9c9e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/openapi-generator/src/main/resources/JavaSpring/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}}

modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)