Skip to content

fix(storage): make signedURL an optional string#1461

Merged
o-santi merged 2 commits intomainfrom
storage/fix-create-signed-urls-types
Apr 20, 2026
Merged

fix(storage): make signedURL an optional string#1461
o-santi merged 2 commits intomainfrom
storage/fix-create-signed-urls-types

Conversation

@o-santi
Copy link
Copy Markdown
Contributor

@o-santi o-santi commented Apr 15, 2026

What kind of change does this PR introduce?

Fixes #1455, by making signedUrl an Optional[str].

What is the current behavior?

When a path that does not exist is passed to create_signed_urls, it will return an item with error set and signedURL: null, and when we try to validate the payload, a validation error is thrown.

What is the new behavior?

No errors are thrown, and the item will have signedUrl=None.

Additional context

This error originates from the JS type annotations being wrong. The corresponding fix for it is contained here

@o-santi o-santi merged commit 611cdbb into main Apr 20, 2026
165 of 313 checks passed
@o-santi o-santi deleted the storage/fix-create-signed-urls-types branch April 20, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValidationError when creating signed URLs for non-existent files

2 participants