-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
In some cases we manually use binary keys:
https://github.com/hexpm/hex_core/blob/v0.6.1/src/hex_api_key.erl#L20:
Params = #{<<"name">> => Name, <<"permissions">> => Permissions},
but in some we allow user to pass the map:
https://github.com/hexpm/hex_core/blob/v0.6.1/src/hex_api_release.erl#L45
hex_api:post(Config, Path, Params).
And so the user may pass atom keys like we used to do here:
wojtekmach/mini_repo@f6c8f39#diff-5008c7016636a9b7531bd02fa4abb5ffL52
We should ensure the params are always a map of binary keys.
Metadata
Metadata
Assignees
Labels
No labels