Call storage_objects_insert_simple with just a name and make Dialyzer happy
ducatore opened this issue · 1 comments
ducatore commented
In this example:
{:ok, object} = GoogleApi.Storage.V1.Api.Objects.storage_objects_insert_simple(
conn,
bucket_id,
"multipart",
%{name: Path.basename(file_path)},
file_path
)
Considering the specs, Dialyzer is not happy with this because storage_objects_insert_simple
expects a GoogleApi.Storage.V1.Model.Object
in metadata.
I just want to pass name
in metadata.
Is there a way to call storage_objects_insert_simple
without building a GoogleApi.Storage.V1.Model.Object
and make Dialyzer happy?
ducatore commented
Oops sorry it works well with the last version (0.44.0).