-
Notifications
You must be signed in to change notification settings - Fork 211
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
chore(fedimint-cli): convert invalid JSON data to JSON string #4088
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4088 +/- ##
==========================================
+ Coverage 58.32% 58.36% +0.04%
==========================================
Files 192 192
Lines 42646 42655 +9
==========================================
+ Hits 24872 24895 +23
+ Misses 17774 17760 -14 ☔ View full report in Codecov by Sentry. |
JSON
data to JSON
string
JSON
data to JSON
string
Please mark each review as resolved after you've added the suggested changes; it clutters the PR view for future reviews and/or reviewers. |
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.
Looks useful, some nits
If `params` fails to get parsed into JSON -> then convert it into `JSON String`
Added debug statement to tell that if given params data is not seriazable , then converting it into JSON string
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.
There might be some funny edge cases, like null
being valid JSON, but overall this will be a quality of life improvement for this debug tool.
IYDM , Should I solve it in this PR ? |
I don't think it's solvable without creating other edge-cases. |
Ok |
If
params
fails to get parsed into JSON -> then convert it into validJSON String
wrapped inValue::String
fix #3194