Closed robertoaloi closed 3 years ago
One of the jobs timed out. Re-running for now to see if it's a deterministic error. Anyone who experienced that before?
I think this is one of the things the will make the library a lot more usable.
Regarding testing, sadly the way to test this currently means:
aws-erlang
tests and checks to make sure everything compiles and there are no warnings.rebar3 shell
in aws-erlang
, create a client and use it to perform some operation in the modified generated modules.It's manual and it sucks, but it also provides a level of confidence that the code looks and behaves as expected.
I successfully run the Kinesis test from the README, an S3 put and an SSM get and all seem to be fine. I found an encoding issue with S3 GET, but I believe that is not related to this PR, so I will proceed and merge this one.
We really need to get some automation and tests around this.
Currently, the generated Erlang code requires the user to pass all parameters (both the required and optional ones) to the respective functions, eventually using the
undefined
atom. As you can image, this makes the library useless for Erlang users when it comes to function which accept a significant number of arguments.What I propose here is to use
maps
to pass the optional parameters, instead. Before investing too much time on it, I wanted to hear your opinion.This PR allows to go from the current:
To a slightly more user friendly:
A few considerations:
rest
module for now.