forked from loafle/openapi-generator-original
[crystal] Add annotation to reserved key word list of crystal lang (#10932)
* add annotation to reserved key word list of crystal * Update crystal docs
This commit is contained in:
@@ -58,6 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
<ul class="column-ul">
|
||||
<li>abstract</li>
|
||||
<li>alias</li>
|
||||
<li>annotation</li>
|
||||
<li>as</li>
|
||||
<li>as?</li>
|
||||
<li>asm</li>
|
||||
|
||||
@@ -132,7 +132,7 @@ public class CrystalClientCodegen extends DefaultCodegen {
|
||||
// reserved word. Ref: https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists#available-keywords
|
||||
reservedWords = new HashSet<>(
|
||||
Arrays.asList(
|
||||
"abstract", "do", "if", "nil?", "select", "union",
|
||||
"abstract", "annotation", "do", "if", "nil?", "select", "union",
|
||||
"alias", "else", "in", "of", "self", "unless",
|
||||
"as", "elsif", "include", "out", "sizeof", "until",
|
||||
"as?", "end", "instance", "sizeof", "pointerof", "struct", "verbatim",
|
||||
|
||||
Reference in New Issue
Block a user