Releases: tochka-public/Tochka.JsonRpc
Releases · tochka-public/Tochka.JsonRpc
v6.5.2
v6.5.1
Merge pull request #119 from tochka-public/feature/CSHARP-167 fix: allow PropertyNamingPolicy = null
v6.5.0
v6.4.1
Merge pull request #118 from tecAmoRaller/fix/EndpointMetadata [fix] Endpoint Metadata Validation
v6.4.0
v6.3.1
v6.3.0
v6.2.1
Merge pull request #113 from SedativeEffect/feature/C-SHARP-207-metho…
v6.2.0
BREAKING CHANGES
dotnet 8
- Action arguments with default value can not receive json
null
from params
Example:
public Task MyAction([FromParams(BindingStyle.Object)] string? data = "123"){
// if jsonrpc request has params: null
// data will be "123" instead of null
}
There is no workaround because aspnet ignores binding result if it's null
and this is hardcoded: https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.Core/src/Infrastructure/ControllerActionInvoker.cs#L545
If you expect requests to have params: null
, do not use default argument values for actions!