Azure / azure-functions-dapr-extension

Extension for interacting with Dapr APIs from an Azure Function
MIT License
100 stars 34 forks source link

Fixed DaprBindingMessage JsonElement.ValueKind string issue #130

Closed ASHIQUEMD closed 1 year ago

ASHIQUEMD commented 1 year ago

Current issue: When DaprServiceInvocation is called using DaprInvokeOutput binding, it sends JsonElement data as JsonElement.ValueKind = string, which results in exception (The requested operation requires an element of type 'Object', but the target element has type 'String'.)

This change will support both value kind Object and String.

codecov[bot] commented 1 year ago

Codecov Report

Merging #130 (e4fb7eb) into master (1744050) will increase coverage by 0.27%. Report is 1 commits behind head on master. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #130      +/-   ##
==========================================
+ Coverage   71.69%   71.97%   +0.27%     
==========================================
  Files          51       51              
  Lines        1007     1017      +10     
==========================================
+ Hits          722      732      +10     
  Misses        285      285              
Files Changed Coverage Δ
...obs.Extensions.Dapr/DaprExtensionConfigProvider.cs 72.02% <100.00%> (+2.10%) :arrow_up: