Considerations on awsgen the when
form starting on this line https://github.com/portkey-cloud/aws-clj-sdk/blob/master/src/portkey/awsgen.clj#L242 has to grow from scratch for each protocol to be sure that every case is covered.
Second, the conforming aspects of specs may be too much. Validation and transformation to a model of the message may have to be split.
user> (defn plus [data] (apply + (-> data :numbers)))
#‘user/plus
user> (plus {:numbers [1 2 3]})
6
user> (pk/mount! plus “/plus” :method :post)
Zip size 5.6MB
{:url “<https://04d57u6034.execute-api.eu-west-1.amazonaws.com/repl/plus“>}
> curl -H “Content-Type: application/json” -X POST -d ‘{“numbers”: [1, 2, 3]}’ <https://04d57u6034.execute-api.eu-west-1.amazonaws.com/repl/plus>
> 6
did another try at POST support, ditched earlier branch and started anew
there’s duplication on the swagger definition side, but that will become better
still on the “simplest way to get arguments to a function” path, but introduction of ring (or something like it) would bring more rigour, I think