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/protobuf-schema.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
@@ -20,7 +20,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
20
20
| ------ | ----------- | ------ | ------- |
21
21
|addJsonNameAnnotation|Append "json_name" annotation to message field when the specification name differs from the protobuf field name||false|
22
22
|aggregateModelsName|Aggregated model filename. If set, all generated models will be combined into this single file.||null|
23
-
|enumSimpleName|Use a simple name for enums||false|
23
+
|useSimplifiedEnumNames|Use a simple name for enums||false|
24
24
|numberedFieldNumberList|Field numbers in order.||false|
25
25
|startEnumsWithUnspecified|Introduces "UNSPECIFIED" as the first element of enumerations.||false|
@@ -86,7 +86,7 @@ public class ProtobufSchemaCodegen extends DefaultCodegen implements CodegenConf
86
86
87
87
privatebooleanwrapComplexType = true;
88
88
89
-
privatebooleansimpleEnumName = false;
89
+
privatebooleanuseSimplifiedEnumNames = false;
90
90
91
91
privatebooleansupportMultipleResponses = true;
92
92
@@ -200,7 +200,7 @@ public ProtobufSchemaCodegen() {
200
200
addSwitch(START_ENUMS_WITH_UNSPECIFIED, "Introduces \"UNSPECIFIED\" as the first element of enumerations.", startEnumsWithUnspecified);
201
201
addSwitch(ADD_JSON_NAME_ANNOTATION, "Append \"json_name\" annotation to message field when the specification name differs from the protobuf field name", addJsonNameAnnotation);
202
202
addSwitch(WRAP_COMPLEX_TYPE, "Generate Additional message for complex type", wrapComplexType);
203
-
addSwitch(SIMPLE_ENUM_NAME, "Use a simple name for enums", simpleEnumName);
203
+
addSwitch(USE_SIMPLIFIED_ENUM_NAMES, "Use a simple name for enums", useSimplifiedEnumNames);
0 commit comments