Commit ba5ecbc
authored
Improved Elixir Atom Generation (#20229)
* Update ElixirClientCodegen.java
* Refine the regular expression for atoms
The original regex incorrectly matched `@atom` (unquoted atoms
cannot begin with @). However, through testing with `iex`, it also turns out that the atom
`:@` is legal.
The following atoms will now be quoted that would have been
incorrectly not quoted:
- `:@type`
* Add model to petstore client to test new atom creation regex pattern1 parent 52b5b8f commit ba5ecbc
File tree
5 files changed
+279
-237
lines changed- modules/openapi-generator/src
- main/java/org/openapitools/codegen/languages
- test/resources/3_0/elixir
- samples/client/petstore/elixir
- .openapi-generator
- lib/openapi_petstore/model
- test
5 files changed
+279
-237
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments