Skip to content

Commit d9001b8

Browse files
jwenger100Jonathan Wenger
andauthored
Add additional reserved words for java and csharp (#16276)
Co-authored-by: Jonathan Wenger <jonathan.wenger@avalara.com>
1 parent a3d14c8 commit d9001b8

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

docs/generators/csharp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
8888
<li>List</li>
8989
<li>Object</li>
9090
<li>String</li>
91+
<li>System</li>
9192
<li>System.IO.Stream</li>
9293
<li>bool</li>
9394
<li>bool?</li>

docs/generators/java.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
197197
<li>int</li>
198198
<li>interface</li>
199199
<li>list</li>
200+
<li>localdate</li>
200201
<li>localreturntype</li>
202+
<li>localtime</li>
201203
<li>localvaraccept</li>
202204
<li>localvaraccepts</li>
203205
<li>localvarauthnames</li>
@@ -215,6 +217,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
215217
<li>new</li>
216218
<li>null</li>
217219
<li>object</li>
220+
<li>offsetdatetime</li>
218221
<li>package</li>
219222
<li>private</li>
220223
<li>protected</li>

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public AbstractCSharpCodegen() {
146146
"foreach", "goto", "if", "implicit", "in", "int", "interface", "internal", "is", "lock",
147147
"long", "namespace", "new", "null", "object", "operator", "out", "override", "params",
148148
"private", "protected", "public", "readonly", "ref", "return", "sbyte", "sealed",
149-
"short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "this", "throw",
149+
"short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "system", "this", "throw",
150150
"true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using",
151151
"virtual", "void", "volatile", "while")
152152
);

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public AbstractJavaCodegen() {
196196
"import", "public", "throws", "case", "enum", "instanceof", "return", "transient",
197197
"catch", "extends", "int", "short", "try", "char", "final", "interface", "static",
198198
"void", "class", "finally", "long", "strictfp", "volatile", "const", "float",
199-
"native", "super", "while", "null")
199+
"native", "super", "while", "null", "offsetdatetime", "localdate", "localtime")
200200
);
201201

202202
languageSpecificPrimitives = Sets.newHashSet("String",

0 commit comments

Comments
 (0)