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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,13 +100,15 @@ These options may be applied as additional-properties (cli) or configOptions (pl
100
100
|useBeanValidation|Use BeanValidation API annotations||true|
101
101
|useDeductionForOneOfInterfaces|whether to use deduction for generated oneOf interfaces||false|
102
102
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
103
+
|useFeignClientContextId|Whether to generate Feign client with contextId parameter.||true|
103
104
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
104
105
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
105
106
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||false|
106
107
|useOptional|Use Optional container for optional parameters||false|
107
108
|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|
108
109
|useSealed|Whether to generate sealed model interfaces and classes||false|
109
110
|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|
111
+
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
110
112
|useSpringController|Annotate the generated API as a Spring Controller||false|
111
113
|useSwaggerUI|Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies||true|
112
114
|useTags|use tags for creating interface and controller classnames||false|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,13 +93,15 @@ These options may be applied as additional-properties (cli) or configOptions (pl
93
93
|useBeanValidation|Use BeanValidation API annotations||true|
94
94
|useDeductionForOneOfInterfaces|whether to use deduction for generated oneOf interfaces||false|
95
95
|useEnumCaseInsensitive|Use `equalsIgnoreCase` when String for enum comparison||false|
96
+
|useFeignClientContextId|Whether to generate Feign client with contextId parameter.||true|
96
97
|useFeignClientUrl|Whether to generate Feign client with url parameter.||true|
97
98
|useJakartaEe|whether to use Jakarta EE namespace instead of javax||false|
98
99
|useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface||false|
99
100
|useOptional|Use Optional container for optional parameters||false|
100
101
|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|
101
102
|useSealed|Whether to generate sealed model interfaces and classes||false|
102
103
|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|
104
+
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
103
105
|useSpringController|Annotate the generated API as a Spring Controller||false|
104
106
|useSwaggerUI|Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies||true|
105
107
|useTags|use tags for creating interface and controller classnames||false|
@@ -68,6 +74,8 @@ public class ProtobufSchemaCodegen extends DefaultCodegen implements CodegenConf
68
74
69
75
privatebooleanaddJsonNameAnnotation = false;
70
76
77
+
privatebooleanwrapComplexType = true;
78
+
71
79
@Override
72
80
publicCodegenTypegetTag() {
73
81
returnCodegenType.SCHEMA;
@@ -177,6 +185,7 @@ public ProtobufSchemaCodegen() {
177
185
addSwitch(NUMBERED_FIELD_NUMBER_LIST, "Field numbers in order.", numberedFieldNumberList);
178
186
addSwitch(START_ENUMS_WITH_UNSPECIFIED, "Introduces \"UNSPECIFIED\" as the first element of enumerations.", startEnumsWithUnspecified);
179
187
addSwitch(ADD_JSON_NAME_ANNOTATION, "Append \"json_name\" annotation to message field when the specification name differs from the protobuf field name", addJsonNameAnnotation);
188
+
addSwitch(WRAP_COMPLEX_TYPE, "Generate Additional message for complex type", wrapComplexType);
* NOTE: Enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, enum value must be unique
@@ -681,7 +912,11 @@ public OperationsMap postProcessOperationsWithModels(OperationsMap objs, List<Mo
0 commit comments