Repository navigation
fix: accept explicit null for optional string params instead of a 500 - #13707
Merged
Merged
Conversation
utopia-http skips validation for a null optional param and passes it through, so a typed action argument threw a TypeError. Coalesce to the declared default, as memberships create already does (CLOUD-3QWQ, CLOUD-3QVD, CLOUD-3PNW, CLOUD-3QK8).
Contributor
|
ArnabChatterjee20k
approved these changes
Sep 15, 2026
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes four Sentry issues of the same shape: a client sends an explicit
nullfor an optional string param, utopia-http skips validation for a null optional and passes it through, and the typedaction()argument throws a TypeError. The caller gets a 500 where the declared default should have applied.functions.createscheduleexecutions.createpathaccount.createnameEach argument is now nullable and coalesces to its param default, the same pattern
memberships.createalready uses foremail,userId,phone,urlandname.A framework-level fix (substitute the default for any null optional) was considered and rejected: 44 endpoints deliberately declare
?stringwith a non-null default and may distinguish null from the default.Testing
Pint passes. The existing E2E create tests for functions, executions and account now also send the optional param as an explicit
nulland assert a 201 with the default applied. Without the fix each of those requests returns a 500 TypeError.