Skip to content

Commit

Permalink
Update priv/post.ex.eex
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Sampaio <[email protected]>
  • Loading branch information
onno-vos-dev and philss authored Mar 23, 2024
1 parent a3eb9c6 commit 0dd07f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/post.ex.eex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule <%= context.module_name %> do
fn action ->
errors = action.errors
if not is_nil(errors) do
errors_snakecased = errors |> Enum.map(fn error -> AWS.CodeGen.Name.to_snake_case(String.replace(error["target"], ~r/com\.amazonaws\.[^#]+#/, "")) end)
errors_snakecased = Enum.map(errors, fn error -> AWS.CodeGen.Name.to_snake_case(String.replace(error["target"], ~r/com\.amazonaws\.[^#]+#/, "")) end)
all_types = AWS.CodeGen.Types.types(context)
error_types = Enum.reduce(all_types,
[],
Expand Down

0 comments on commit 0dd07f5

Please sign in to comment.