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/customization.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -530,7 +530,7 @@ Another useful option is `inlineSchemaOptions`, which allows you to customize ho
530
530
- `MAP_ITEM_SUFFIX` set the map item suffix
531
531
- `SKIP_SCHEMA_REUSE=true` is a special value to skip reusing inline schemas during refactoring
532
532
- `REFACTOR_ALLOF_INLINE_SCHEMAS=true` will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schemas by default)
533
-
- `RESOLVE_INLINE_ENUMS=true` will refactor inline enum definitions into $ref. This must be activated to allow the renaming of inline enum definitions using `inlineSchemaMappings`.
533
+
- `RESOLVE_INLINE_ENUMS=true` will refactor inline enum definitions into $ref. This must be activated to allow the renaming of inline enum definitions using `inlineSchemaNameMappings`.
Copy file name to clipboardExpand all lines: docs/generators/java-camel.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
104
104
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
105
105
|sourceFolder|source folder for generated code||src/main/java|
106
106
|springApiVersion|Value for 'version' attribute in @RequestMapping (for Spring 7 and above).||null|
107
-
|substituteGenericPagedModel|Detect schemas that represent paginated responses (an object with a 'content' array property and a pagination-metadata property) and replace their generated references with org.springframework.data.web.PagedModel<T>. The detected page schemas and the pagination metadata schema are suppressed from code generation. Only applies when library=spring-boot.||false|
107
+
|substituteGenericPagedModel|Detect schemas that represent paginated responses (an object with a 'content' array property and a 'page' pagination-metadata property) and replace their generated references with PagedModel<T> generated into config package (default 'org.openapitools.configuration'). The detected page schemas and the pagination metadata schema are suppressed from code generation. Only applies when library=spring-boot.||false|
108
108
|testOutput|Set output folder for models and APIs tests||${project.build.directory}/generated-test-sources/openapi|
109
109
|title|server title name or client service name||OpenAPI Spring|
110
110
|unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).||false|
Copy file name to clipboardExpand all lines: docs/generators/kotlin-spring.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
58
58
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.||null|
59
59
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||null|
60
60
|sourceFolder|source folder for generated code||src/main/kotlin|
61
-
|substituteGenericPagedModel|Detect schemas that represent paginated responses (an object with a 'content' array property and a pagination-metadata property) and replace their generated references with org.springframework.data.web.PagedModel<T>. The detected page schemas and the pagination metadata schema are suppressed from code generation. Only applies when library=spring-boot.||false|
61
+
|substituteGenericPagedModel|Detect schemas that represent paginated responses (an object with a 'content' array property and a 'page' pagination-metadata property) and replace their generated references with PagedModel<T> generated into config package (default 'org.openapitools.configuration'). The detected page schemas and the pagination metadata schema are suppressed from code generation. Only applies when library=spring-boot.||false|
62
62
|title|server title name or client service name||OpenAPI Kotlin Spring|
63
63
|useBeanValidation|Use BeanValidation API annotations to validate data types||true|
64
64
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
97
97
|sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.||true|
98
98
|sourceFolder|source folder for generated code||src/main/java|
99
99
|springApiVersion|Value for 'version' attribute in @RequestMapping (for Spring 7 and above).||null|
100
-
|substituteGenericPagedModel|Detect schemas that represent paginated responses (an object with a 'content' array property and a pagination-metadata property) and replace their generated references with org.springframework.data.web.PagedModel<T>. The detected page schemas and the pagination metadata schema are suppressed from code generation. Only applies when library=spring-boot.||false|
100
+
|substituteGenericPagedModel|Detect schemas that represent paginated responses (an object with a 'content' array property and a 'page' pagination-metadata property) and replace their generated references with PagedModel<T> generated into config package (default 'org.openapitools.configuration'). The detected page schemas and the pagination metadata schema are suppressed from code generation. Only applies when library=spring-boot.||false|
101
101
|testOutput|Set output folder for models and APIs tests||${project.build.directory}/generated-test-sources/openapi|
102
102
|title|server title name or client service name||OpenAPI Spring|
103
103
|unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).||false|
Copy file name to clipboardExpand all lines: modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -298,9 +298,9 @@ public KotlinSpringServerCodegen() {
298
298
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);
299
299
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);
300
300
addSwitch(SUBSTITUTE_GENERIC_PAGED_MODEL,
301
-
"Detect schemas that represent paginated responses (an object with a 'content' array property and a "
301
+
"Detect schemas that represent paginated responses (an object with a 'content' array property and a 'page' "
302
302
+ "pagination-metadata property) and replace their generated references with "
303
-
+ "org.springframework.data.web.PagedModel<T>. The detected page schemas and the pagination metadata "
303
+
+ "PagedModel<T> generated into config package (default 'org.openapitools.configuration'). The detected page schemas and the pagination metadata "
304
304
+ "schema are suppressed from code generation. Only applies when library=spring-boot.",
305
305
substituteGenericPagedModel);
306
306
addSwitch(COMPANION_OBJECT, "Whether to generate companion objects in data classes, enabling companion extensions.", companionObject);
0 commit comments