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
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
31
31
|artifactUrl|artifact URL in generated pom.xml||https://github.com/openapitools/openapi-generator|
32
32
|artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename. If not provided, uses the version from the OpenAPI specification file. If that's also not present, uses the default value of the artifactVersion option.||1.0.0|
33
33
|async|use async Callable controllers||false|
34
+
|autoXSpringPaginated|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. Only applies when library=spring-boot.||false|
34
35
|basePackage|base package (invokerPackage) for generated code||org.openapitools|
35
36
|bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.||false|
@@ -62,6 +63,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
62
63
|generateBuilders|Whether to generate builders for models||false|
63
64
|generateConstructorWithAllArgs|whether to generate a constructor for all arguments||false|
64
65
|generateGenericResponseEntity|Use a generic type for the `ResponseEntity` wrapping return values of generated API methods. If enabled, method are generated with return type ResponseEntity<?>||false|
66
+
|generatePageableConstraintValidation|Generate a @ValidPageable annotation and PageableConstraintValidator class, and apply @ValidPageable to paginated operations whose 'page' or 'size' parameter has a maximum constraint. Requires useBeanValidation=true and library=spring-boot.||false|
67
+
|generateSortValidation|Generate a @ValidSort annotation and SortValidator class, and apply @ValidSort to paginated operations whose 'sort' parameter has enum values. Requires useBeanValidation=true and library=spring-boot.||false|
65
68
|generatedConstructorWithRequiredArgs|Whether to generate constructors with required args for models||true|
66
69
|groupId|groupId in generated pom.xml||org.openapitools|
67
70
|hateoas|Use Spring HATEOAS library to allow adding HATEOAS links||false|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
31
31
|artifactUrl|artifact URL in generated pom.xml||https://github.com/openapitools/openapi-generator|
32
32
|artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename. If not provided, uses the version from the OpenAPI specification file. If that's also not present, uses the default value of the artifactVersion option.||1.0.0|
33
33
|async|use async Callable controllers||false|
34
+
|autoXSpringPaginated|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. Only applies when library=spring-boot.||false|
34
35
|basePackage|base package (invokerPackage) for generated code||org.openapitools|
35
36
|bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.||false|
@@ -55,6 +56,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
55
56
|generateBuilders|Whether to generate builders for models||false|
56
57
|generateConstructorWithAllArgs|whether to generate a constructor for all arguments||false|
57
58
|generateGenericResponseEntity|Use a generic type for the `ResponseEntity` wrapping return values of generated API methods. If enabled, method are generated with return type ResponseEntity<?>||false|
59
+
|generatePageableConstraintValidation|Generate a @ValidPageable annotation and PageableConstraintValidator class, and apply @ValidPageable to paginated operations whose 'page' or 'size' parameter has a maximum constraint. Requires useBeanValidation=true and library=spring-boot.||false|
60
+
|generateSortValidation|Generate a @ValidSort annotation and SortValidator class, and apply @ValidSort to paginated operations whose 'sort' parameter has enum values. Requires useBeanValidation=true and library=spring-boot.||false|
58
61
|generatedConstructorWithRequiredArgs|Whether to generate constructors with required args for models||true|
59
62
|groupId|groupId in generated pom.xml||org.openapitools|
60
63
|hateoas|Use Spring HATEOAS library to allow adding HATEOAS links||false|
Copy file name to clipboardExpand all lines: samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApi.java
@Parameter(name = "size", description = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.", in = ParameterIn.HEADER) @RequestHeader(value = "size", required = false) @NullableStringsize,
Copy file name to clipboardExpand all lines: samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/PetApiDelegate.java
Copy file name to clipboardExpand all lines: samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApi.java
@Parameter(name = "size", description = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.", in = ParameterIn.HEADER) @RequestHeader(value = "size", required = false) @NullableStringsize,
Copy file name to clipboardExpand all lines: samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/PetApiDelegate.java
Copy file name to clipboardExpand all lines: samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/PetApi.java
@Parameter(name = "size", description = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.", in = ParameterIn.HEADER) @RequestHeader(value = "size", required = false) @NullableStringsize,
@Parameter(name = "size", description = "A test HeaderParam for issue #8315 - must NOT be removed when x-spring-paginated:true is used.", in = ParameterIn.HEADER) @RequestHeader(value = "size", required = false) @NullableStringsize,
0 commit comments