google / google/googleapis.dart

StorageApi.objects.insert request parameter should be nullable

Open
#353 2 comments 0 reactions 0 assignees View on GitHub
bug package:googleapis
Dominant language
Dart
Stars
419
Forks
136
Avg merge
1h 21m
Merged PRs (30d)
5

Description

We should be able to do this since the request body is optional in the REST API:

```dart
StorageApi(client).objects.insert(null, bucket, name: name, uploadMedia: media);
```

However, this method call is not possible with the current non-nullable typing of the first parameter (naturally, this was working prior to the null-safety migration.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.