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
@@ -290,6 +295,12 @@ public KotlinSpringServerCodegen() {
290
295
addSwitch(AUTO_X_SPRING_PAGINATED, "Automatically add x-spring-paginated to operations that have 'page', 'size', and 'sort' query parameters. When enabled, operations with all three parameters will have Pageable support automatically applied. Operations with x-spring-paginated explicitly set to false will not be auto-detected.", autoXSpringPaginated);
291
296
addSwitch(GENERATE_SORT_VALIDATION, "Generate a @ValidSort annotation and SortValidator class, and apply @ValidSort to the injected Pageable parameter of operations whose 'sort' parameter has enum values. The annotation validates that sort values in the Pageable object match the allowed enum values from the spec. Requires useBeanValidation=true and library=spring-boot.", generateSortValidation);
292
297
addSwitch(GENERATE_PAGEABLE_CONSTRAINT_VALIDATION, "Generate a @ValidPageable annotation and PageableConstraintValidator class, and apply @ValidPageable to the injected Pageable parameter of operations whose 'page' or 'size' parameter specifies a maximum constraint. The annotation enforces those constraints on the Pageable object that replaces the individual page/size query parameters. Requires useBeanValidation=true and library=spring-boot.", generatePageableConstraintValidation);
298
+
addSwitch(SUBSTITUTE_GENERIC_PAGED_MODEL,
299
+
"Detect schemas that represent paginated responses (an object with a 'content' array property and a "
300
+
+ "pagination-metadata property) and replace their generated references with "
301
+
+ "org.springframework.data.web.PagedModel<T>. The detected page schemas and the pagination metadata "
302
+
+ "schema are suppressed from code generation. Only applies when library=spring-boot.",
303
+
substituteGenericPagedModel);
293
304
addSwitch(COMPANION_OBJECT, "Whether to generate companion objects in data classes, enabling companion extensions.", companionObject);
294
305
supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application.");
0 commit comments