View Source GoogleAI.Utils (google_ai v0.1.1)
Miscellaneous utilities functions.
Summary
Functions
Camelize all keys in the given map or keyword-list.
Merges any path params already set in the given req
with the incoming list
of path_params
.
Functions
Camelize all keys in the given map or keyword-list.
Arguments
:input
- A map or keyword-list to camelize.
Returns
A string-keyed map with camelized keys.
Examples
iex> GoogleAI.Utils.camelize_keys(%{"foo_bar" => "baz"}) %{"fooBar" => "baz"}
iex> GoogleAI.Utils.camelize_keys(foo_bar: "baz") %{"fooBar" => "baz"}
@spec merge_path_params(Req.Request.t(), Keyword.t()) :: Req.Request.t()
Merges any path params already set in the given req
with the incoming list
of path_params
.