Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

FileMetadata type missing null on metadata for delete #2441

@p-young

Description

@p-young

For the property 'metadata' on type FileMetadata (which is used in places like File.setMetadata())
image

It is typed as Record<string, string>, but it needs to allow null too (so Record<string, string | null>)

Null is used to delete the key, as in the documentation:
https://googleapis.dev/nodejs/storage/latest/File.html#setMetadata
image

Thanks and let me know if you have any questions

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the googleapis/nodejs-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions