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
publicstaticfinalStringUSE_DATETIME_OFFSET_DESC = "Use DateTimeOffset to model date-time properties";
158
158
159
+
// public static final String INCLUDE_HTTP_REQUEST_CONTEXT = "includeHttpRequestContext";
160
+
// public static final String INCLUDE_HTTP_REQUEST_CONTEXT_DESC = "Include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods";
@@ -204,10 +227,10 @@ public KotlinSpringServerCodegen() {
204
227
addSwitch(GRADLE_BUILD_FILE, "generate a gradle build file using the Kotlin DSL", gradleBuildFile);
205
228
addSwitch(USE_SWAGGER_UI, "Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies", useSwaggerUI);
206
229
addSwitch(SERVICE_INTERFACE, "generate service interfaces to go alongside controllers. In most " +
207
-
"cases this option would be used to update an existing project, so not to override implementations. " +
208
-
"Useful to help facilitate the generation gap pattern", serviceInterface);
230
+
"cases this option would be used to update an existing project, so not to override implementations. " +
231
+
"Useful to help facilitate the generation gap pattern", serviceInterface);
209
232
addSwitch(SERVICE_IMPLEMENTATION, "generate stub service implementations that extends service " +
210
-
"interfaces. If this is set to true service interfaces will also be generated", serviceImplementation);
233
+
"interfaces. If this is set to true service interfaces will also be generated", serviceImplementation);
211
234
addSwitch(USE_BEANVALIDATION, "Use BeanValidation API annotations to validate data types", useBeanValidation);
212
235
addSwitch(SKIP_DEFAULT_INTERFACE, "Whether to skip generation of default implementations for interfaces (Api interfaces or Delegate interfaces depending on the delegatePattern option)", skipDefaultInterface);
213
236
addSwitch(REACTIVE, "use coroutines for reactive behavior", reactive);
@@ -220,6 +243,7 @@ public KotlinSpringServerCodegen() {
220
243
" (contexts) added to single project.", beanQualifiers);
221
244
addSwitch(USE_SPRING_BOOT3, "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`.", useSpringBoot3);
222
245
addSwitch(USE_FLOW_FOR_ARRAY_RETURN_TYPE, "Whether to use Flow for array/collection return types when reactive is enabled. If false, will use List instead.", useFlowForArrayReturnType);
246
+
addSwitch(INCLUDE_HTTP_REQUEST_CONTEXT, "Whether to include HttpServletRequest (blocking) or ServerWebExchange (reactive) as additional parameter in generated methods.", includeHttpRequestContext);
223
247
supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application.");
224
248
supportedLibraries.put(SPRING_CLOUD_LIBRARY,
225
249
"Spring-Cloud-Feign client with Spring-Boot auto-configured settings.");
@@ -307,7 +331,7 @@ public List<AnnotationLibrary> supportedAnnotationLibraries() {
0 commit comments