You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators/java-camel.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
95
95
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.||true|
96
96
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
97
97
|sourceFolder|source folder for generated code||src/main/java|
98
+
|springApiVersion|Value for 'version' attribute in @RequestMapping (for Spring 7 and above).||null|
98
99
|testOutput|Set output folder for models and APIs tests||${project.build.directory}/generated-test-sources/openapi|
99
100
|title|server title name or client service name||OpenAPI Spring|
100
101
|unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).||false|
@@ -108,7 +109,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
108
109
|useOptional|Use Optional container for optional parameters||false|
109
110
|useResponseEntity|Use the `ResponseEntity` type to wrap return values of generated API methods. If disabled, method are annotated using a `@ResponseStatus` annotation, which has the status of the first response declared in the Api definition||true|
110
111
|useSealed|Whether to generate sealed model interfaces and classes||false|
111
-
|useSpringApiVersion|Generate version attribute in @RequestMapping for Spring 7.||null|
112
112
|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot 3.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.||false|
113
113
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
114
114
|useSpringController|Annotate the generated API as a Spring Controller||false|
@@ -133,8 +133,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
133
133
|x-spring-paginated|Add `org.springframework.data.domain.Pageable` to controller method. Can be used to handle `page`, `size` and `sort` query parameters. If these query parameters are also specified in the operation spec, they will be removed from the controller method as their values can be obtained from the `Pageable` object.|OPERATION|false
134
134
|x-version-param|Marker property that tells that this parameter would be used for endpoint versioning. Applicable for headers & query params. true/false|OPERATION_PARAMETER|null
135
135
|x-pattern-message|Add this property whenever you need to customize the invalidation error message for the regex pattern of a variable|FIELD, OPERATION_PARAMETER|null
136
-
|x-pattern-message|Add this property whenever you need to customize the invalidation error message for the regex pattern of a variable|FIELD, OPERATION_PARAMETER|null
137
-
|x-spring-api-version|Generate version attribute in @RequestMapping for Spring 7.|OPERATION|null
136
+
|x-spring-api-version|Value for 'version' attribute in @RequestMapping (for Spring 7 and above).|OPERATION|null
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
88
88
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.||true|
89
89
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
90
90
|sourceFolder|source folder for generated code||src/main/java|
91
+
|springApiVersion|Value for 'version' attribute in @RequestMapping (for Spring 7 and above).||null|
91
92
|testOutput|Set output folder for models and APIs tests||${project.build.directory}/generated-test-sources/openapi|
92
93
|title|server title name or client service name||OpenAPI Spring|
93
94
|unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).||false|
@@ -101,7 +102,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
101
102
|useOptional|Use Optional container for optional parameters||false|
102
103
|useResponseEntity|Use the `ResponseEntity` type to wrap return values of generated API methods. If disabled, method are annotated using a `@ResponseStatus` annotation, which has the status of the first response declared in the Api definition||true|
103
104
|useSealed|Whether to generate sealed model interfaces and classes||false|
104
-
|useSpringApiVersion|Generate version attribute in @RequestMapping for Spring 7.||null|
105
105
|useSpringBoot3|Generate code and provide dependencies for use with Spring Boot 3.x. (Use jakarta instead of javax in imports). Enabling this option will also enable `useJakartaEe`.||false|
106
106
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
107
107
|useSpringController|Annotate the generated API as a Spring Controller||false|
@@ -126,8 +126,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
126
126
|x-spring-paginated|Add `org.springframework.data.domain.Pageable` to controller method. Can be used to handle `page`, `size` and `sort` query parameters. If these query parameters are also specified in the operation spec, they will be removed from the controller method as their values can be obtained from the `Pageable` object.|OPERATION|false
127
127
|x-version-param|Marker property that tells that this parameter would be used for endpoint versioning. Applicable for headers & query params. true/false|OPERATION_PARAMETER|null
128
128
|x-pattern-message|Add this property whenever you need to customize the invalidation error message for the regex pattern of a variable|FIELD, OPERATION_PARAMETER|null
129
-
|x-pattern-message|Add this property whenever you need to customize the invalidation error message for the regex pattern of a variable|FIELD, OPERATION_PARAMETER|null
130
-
|x-spring-api-version|Generate version attribute in @RequestMapping for Spring 7.|OPERATION|null
129
+
|x-spring-api-version|Value for 'version' attribute in @RequestMapping (for Spring 7 and above).|OPERATION|null
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/VendorExtension.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ public enum VendorExtension {
13
13
X_KOTLIN_IMPLEMENTS("x-kotlin-implements", ExtensionLevel.MODEL, "Ability to specify interfaces that model must implement", "empty array"),
14
14
X_KOTLIN_IMPLEMENTS_FIELDS("x-kotlin-implements-fields", ExtensionLevel.MODEL, "Specify attributes that are implemented by the interface(s) added via `x-kotlin-implements`", "empty array"),
15
15
X_SPRING_PAGINATED("x-spring-paginated", ExtensionLevel.OPERATION, "Add `org.springframework.data.domain.Pageable` to controller method. Can be used to handle `page`, `size` and `sort` query parameters. If these query parameters are also specified in the operation spec, they will be removed from the controller method as their values can be obtained from the `Pageable` object.", "false"),
16
-
X_SPRING_API_VERSION("x-spring-api-version", ExtensionLevel.OPERATION, "Generate version attribute in @RequestMapping for Spring 7.", null),
16
+
X_SPRING_API_VERSION("x-spring-api-version", ExtensionLevel.OPERATION, "Value for 'version' attribute in @RequestMapping (for Spring 7 and above).", null),
17
17
X_SPRING_PROVIDE_ARGS("x-spring-provide-args", ExtensionLevel.OPERATION, "Allows adding additional hidden parameters in the API specification to allow access to content such as header values or properties", "empty array"),
18
18
X_DISCRIMINATOR_VALUE("x-discriminator-value", ExtensionLevel.MODEL, "Used with model inheritance to specify value for discriminator that identifies current model", ""),
19
19
X_SETTER_EXTRA_ANNOTATION("x-setter-extra-annotation", ExtensionLevel.FIELD, "Custom annotation that can be specified over java setter for specific field", "When field is array & uniqueItems, then this extension is used to add `@JsonDeserialize(as = LinkedHashSet.class)` over setter, otherwise no value"),
cliOptions.add(CliOption.newBoolean(USE_DEDUCTION_FOR_ONE_OF_INTERFACES, "whether to use deduction for generated oneOf interfaces", useDeductionForOneOfInterfaces));
290
-
cliOptions.add(CliOption.newString(USE_SPRING_API_VERSION, "Generate version attribute in @RequestMapping for Spring 7."));
290
+
cliOptions.add(CliOption.newString(SPRING_API_VERSION, "Value for 'version' attribute in @RequestMapping (for Spring 7 and above)."));
291
291
supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application.");
292
292
supportedLibraries.put(SPRING_CLOUD_LIBRARY,
293
293
"Spring-Cloud-Feign client with Spring-Boot auto-configured settings.");
0 commit comments