Skip to content

Commit

Permalink
[Elixir] Fix generation issues and compilation warnings in Elixir gen…
Browse files Browse the repository at this point in the history
…erator (#18788)

* Format Elixir generator

* Update Elixir reserved words

* Update Elixir generator docs

* Improve typespec generation to avoid double ".t" issues

* Fix compilation warnings by changing reserved words to use suffix instead of underscore prefix

* Include additional reserved words and handle words with leading underscores

* Update samples and docs

* Uses dataType instead of baseType for non-struct types

* Generate elixir samples

* Fixes issue with AnyType in a list

* Generate elixir samples

* Removes normalizeTypeName for arrays as they correct by getTypeDeclaration

* CodeStyle

---------

Co-authored-by: Michael Ramstein <[email protected]>
  • Loading branch information
ntodd and mrmstn committed Jun 10, 2024
1 parent 80bb3dd commit 00f2cd5
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 123 deletions.
13 changes: 13 additions & 0 deletions docs/generators/elixir.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,22 @@ These options may be applied as additional-properties (cli) or configOptions (pl
<li>__ENV__</li>
<li>__FILE__</li>
<li>__MODULE__</li>
<li>__struct__</li>
<li>after</li>
<li>and</li>
<li>catch</li>
<li>do</li>
<li>else</li>
<li>end</li>
<li>false</li>
<li>fn</li>
<li>in</li>
<li>nil</li>
<li>not</li>
<li>or</li>
<li>rescue</li>
<li>true</li>
<li>when</li>
</ul>

## FEATURE SET
Expand Down
Loading

0 comments on commit 00f2cd5

Please sign in to comment.