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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
106
106
|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|
107
107
|useSealed|Whether to generate sealed model interfaces and classes||false|
108
108
|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|
109
+
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
109
110
|useSpringController|Annotate the generated API as a Spring Controller||false|
110
111
|useSwaggerUI|Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies||true|
111
112
|useTags|use tags for creating interface and controller classnames||false|
Copy file name to clipboardExpand all lines: docs/generators/protobuf-schema.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
21
21
|addJsonNameAnnotation|Append "json_name" annotation to message field when the specification name differs from the protobuf field name||false|
22
22
|numberedFieldNumberList|Field numbers in order.||false|
23
23
|startEnumsWithUnspecified|Introduces "UNSPECIFIED" as the first element of enumerations.||false|
24
+
|wrapComplexType|Generate Additional message for complex type||true|
Copy file name to clipboardExpand all lines: docs/generators/spring.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
99
99
|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|
100
100
|useSealed|Whether to generate sealed model interfaces and classes||false|
101
101
|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|
102
+
|useSpringBuiltInValidation|Disable `@Validated` at the class level when using built-in validation.||false|
102
103
|useSpringController|Annotate the generated API as a Spring Controller||false|
103
104
|useSwaggerUI|Open the OpenApi specification in swagger-ui. Will also import and configure needed dependencies||true|
104
105
|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
0 commit comments