Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented Mar 18, 2025

Follow-up to #22
Related to #13

This PR improves the handling of null parameters in TypedRequestHandler when converting from type-erased requests (AnyRequest) to typed requests. Previously, the handler would attempt to decode null parameters in all cases, which could lead to errors for methods using Empty or NotRequired parameter types.

@mattt mattt marked this pull request as draft March 18, 2025 19:55
@mattt
Copy link
Contributor Author

mattt commented Mar 18, 2025

I'm pretty sure this is already handled by the JSON decoder behavior in the Request initializer, since the new tests pass after reverting the implementation.

@mattt mattt closed this Mar 18, 2025
@mattt mattt changed the title Handle null params correctly in TypedRequestHandler Handle null params in TypedRequestHandler Mar 18, 2025
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.

2 participants