Skip to content

Commit 7a986fa

Browse files
authored
Merge pull request #134 from aws-beam/add-record-to-reserved-keywords
Add record to reserved keywords
2 parents ec24dc6 + b4c5ca2 commit 7a986fa

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/gen_elixir.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
elixir: ["1.18.3"]
19-
erlang: ["26"]
18+
elixir: ["1.19"]
19+
erlang: ["28"]
2020

2121
steps:
2222
- uses: actions/checkout@v2

lib/aws_codegen/types.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ defmodule AWS.CodeGen.Types do
198198
end
199199

200200
defp reserved_type(type) do
201-
type == "node" || type == "term" || type == "function" || type == "reference" || type == "identifier" || type == "none" || type == "none()"
201+
type == "node" || type == "term" || type == "function" || type == "reference" || type == "identifier" || type == "none" || type == "none()" || type == "record"
202202
end
203203

204204
def function_argument_type(:elixir, action) do

priv/rest.ex.eex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ defmodule <%= context.module_name %> do
8989
options = Keyword.put(
9090
options,
9191
:response_header_parameters,
92-
<%= inspect((for param <- action.response_header_parameters, do: {param.location_name, param.name}), pretty: true) %>
92+
<%= inspect((for param <- action.response_header_parameters, do: {param.location_name, param.name}), [limit: :infinity, printable_limit: :infinity, pretty: true]) %>
9393
)<% end %>
9494

9595
<%= if action.send_body_as_binary? do %>
@@ -139,7 +139,7 @@ def <%= action.function_name %>(%Client{} = client<%= AWS.CodeGen.RestService.fu
139139
options = Keyword.put(
140140
options,
141141
:response_header_parameters,
142-
<%= inspect((for param <- action.response_header_parameters, do: {param.location_name, param.name}), pretty: true) %>
142+
<%= inspect((for param <- action.response_header_parameters, do: {param.location_name, param.name}), [limit: :infinity, printable_limit: :infinity, pretty: true]) %>
143143
)<% end %>
144144

145145
<%= if action.send_body_as_binary? do %>

0 commit comments

Comments
 (0)