-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added UseSingleObjectParameterDeserialization option to JsonRpcTargetOptions #446
Added UseSingleObjectParameterDeserialization option to JsonRpcTargetOptions #446
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your submission. I look forward to merging when the issues I call out are corrected.
Codecov Report
@@ Coverage Diff @@
## master #446 +/- ##
=======================================
Coverage 90.55% 90.56%
=======================================
Files 49 49
Lines 3769 3772 +3
=======================================
+ Hits 3413 3416 +3
Misses 356 356
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@daniel-vetter As there are 6 commits for this relatively small change, do you mind if I squash when completing this PR? Or would you like to squash your own commits and do a force push to your branch before I complete it? |
@AArnott I squashed everything. You can complete the PR. |
I added the the
UseSingleObjectParameterDeserialization
property to the target options. When the property is set to true, theGetRequestMethodToClrMethodMap
method will add aJsonRpcMethodAttribute
to theMethodSignatureAndTarget
. I don't know if this is the correct approach becauseGetJsonRpcMethodAttribute
will now return a attribute, that did not exist on the original method. But it seems likeAddLocalRpcMethod
is also creating fake attributes, so i think it should be ok.resolves #444