Skip to content

Commit

Permalink
Remove nil from request payloads (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbair authored Oct 21, 2024
1 parent 30cb8bf commit 1ea9c87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/code_gen/code_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ defmodule ExOanda.CodeGenerator do
|> Miss.Map.from_nested_struct()
|> to_camel()
|> Enum.into(%{})
|> NestedFilter.drop_by_value([nil])
end

@doc false
Expand Down
1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ defmodule ExOanda.MixProject do
{:excoveralls, "~> 0.18.1", only: :test},
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:miss, "~> 0.1.5"},
{:nested_filter, "~> 1.2"},
{:nimble_options, "~> 1.1"},
{:polymorphic_embed, "~> 5.0"},
{:recase, "~> 0.8.1"},
Expand Down
1 change: 1 addition & 0 deletions mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"mime": {:hex, :mime, "2.0.6", "8f18486773d9b15f95f4f4f1e39b710045fa1de891fada4516559967276e4dc2", [:mix], [], "hexpm", "c9945363a6b26d747389aac3643f8e0e09d30499a138ad64fe8fd1d13d9b153e"},
"mint": {:hex, :mint, "1.6.2", "af6d97a4051eee4f05b5500671d47c3a67dac7386045d87a904126fd4bbcea2e", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1 or ~> 0.2.0 or ~> 1.0", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "5ee441dffc1892f1ae59127f74afe8fd82fda6587794278d924e4d90ea3d63f9"},
"miss": {:hex, :miss, "0.1.5", "dcf0771834ecd82580ff02d7299563c327afa8330485d281afe0b9512adcd500", [:mix], [], "hexpm", "494aba3ba3ed8a290714b4b9ff8c8d750b76dccb63c1aca21830a74989f8a047"},
"nested_filter": {:hex, :nested_filter, "1.2.2", "54d02ad0d34a2a020462dd13bf560b44d5bdfa819120e3eed35c474ab63be3ff", [:mix], [], "hexpm", "cd4c6bab689cddf46177ffcc49f47f7afc42b8f0adc7245a37e08c943c47206c"},
"nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"},
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
"nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"},
Expand Down

0 comments on commit 1ea9c87

Please sign in to comment.