Releases: tochka-public/Tochka.JsonRpc
Releases · tochka-public/Tochka.JsonRpc
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!
v5.2.0
v5.1.0
v5.0.1
v5.0.0
Features
- add advanced data for JRpcResult + typed methods for client + typed methods for responses (a97937a)
- JsonRpcClient got extra methods for typed SendRequest<TRequest, TResponse> and SendBatch
BREAKING CHANGES
- Fields such as 'AsAnyError', 'AsTypedError', 'AsErrorWithExceptionInfo' of ISingleJsonRpcResult and IBatchJsonRpcResult moved to field 'Advanced' and available for use e.g. 'result.Advanced.AsAnyError'