mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
Add additional reserved words for java and csharp (#16276)
Co-authored-by: Jonathan Wenger <jonathan.wenger@avalara.com>
This commit is contained in:
parent
a3d14c87c4
commit
d9001b8a6f
@ -88,6 +88,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
<li>List</li>
|
<li>List</li>
|
||||||
<li>Object</li>
|
<li>Object</li>
|
||||||
<li>String</li>
|
<li>String</li>
|
||||||
|
<li>System</li>
|
||||||
<li>System.IO.Stream</li>
|
<li>System.IO.Stream</li>
|
||||||
<li>bool</li>
|
<li>bool</li>
|
||||||
<li>bool?</li>
|
<li>bool?</li>
|
||||||
|
@ -197,7 +197,9 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
<li>int</li>
|
<li>int</li>
|
||||||
<li>interface</li>
|
<li>interface</li>
|
||||||
<li>list</li>
|
<li>list</li>
|
||||||
|
<li>localdate</li>
|
||||||
<li>localreturntype</li>
|
<li>localreturntype</li>
|
||||||
|
<li>localtime</li>
|
||||||
<li>localvaraccept</li>
|
<li>localvaraccept</li>
|
||||||
<li>localvaraccepts</li>
|
<li>localvaraccepts</li>
|
||||||
<li>localvarauthnames</li>
|
<li>localvarauthnames</li>
|
||||||
@ -215,6 +217,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
<li>new</li>
|
<li>new</li>
|
||||||
<li>null</li>
|
<li>null</li>
|
||||||
<li>object</li>
|
<li>object</li>
|
||||||
|
<li>offsetdatetime</li>
|
||||||
<li>package</li>
|
<li>package</li>
|
||||||
<li>private</li>
|
<li>private</li>
|
||||||
<li>protected</li>
|
<li>protected</li>
|
||||||
|
@ -146,7 +146,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
"foreach", "goto", "if", "implicit", "in", "int", "interface", "internal", "is", "lock",
|
"foreach", "goto", "if", "implicit", "in", "int", "interface", "internal", "is", "lock",
|
||||||
"long", "namespace", "new", "null", "object", "operator", "out", "override", "params",
|
"long", "namespace", "new", "null", "object", "operator", "out", "override", "params",
|
||||||
"private", "protected", "public", "readonly", "ref", "return", "sbyte", "sealed",
|
"private", "protected", "public", "readonly", "ref", "return", "sbyte", "sealed",
|
||||||
"short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "this", "throw",
|
"short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "system", "this", "throw",
|
||||||
"true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using",
|
"true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using",
|
||||||
"virtual", "void", "volatile", "while")
|
"virtual", "void", "volatile", "while")
|
||||||
);
|
);
|
||||||
|
@ -196,7 +196,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
|
|||||||
"import", "public", "throws", "case", "enum", "instanceof", "return", "transient",
|
"import", "public", "throws", "case", "enum", "instanceof", "return", "transient",
|
||||||
"catch", "extends", "int", "short", "try", "char", "final", "interface", "static",
|
"catch", "extends", "int", "short", "try", "char", "final", "interface", "static",
|
||||||
"void", "class", "finally", "long", "strictfp", "volatile", "const", "float",
|
"void", "class", "finally", "long", "strictfp", "volatile", "const", "float",
|
||||||
"native", "super", "while", "null")
|
"native", "super", "while", "null", "offsetdatetime", "localdate", "localtime")
|
||||||
);
|
);
|
||||||
|
|
||||||
languageSpecificPrimitives = Sets.newHashSet("String",
|
languageSpecificPrimitives = Sets.newHashSet("String",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user