Repository navigation
1.0.0-alpha.17
Pre-release
Pre-release
Test Helper Nullable Request Property Fix
- Request builder in RadEndpoints.Testing nuget package was causing nullable request types to not be properly built by producing null values (even when they weren't) into generated HttpRequests in integration tests.
- Symptom was only present when using the package in the context of another project outside of this repo.
- Technical Details:
- The reflection-based request builder was failing to process nullable properties
(e.g., string?) correctly when used in other applications. This was due to missing
nullable context metadata, which caused binding attribute detection (e.g., [FromBody])
to silently fail. The fix ensures attributes are evaluated before skipping null values,
and type checks useispattern matching to avoid runtime mismatches.
- The reflection-based request builder was failing to process nullable properties