-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Make comment Author & UpdateAuthor properties pointers #640
base: main
Are you sure you want to change the base?
Make comment Author & UpdateAuthor properties pointers #640
Conversation
@LaurenceTews thanks for the fix! @andygrunwald Kind reminder, could you please review this? |
Keen to have this merged, using a workaround for now |
I can confirm this works - I've been fighting this problem today and was just about to put in an identical PR. Would be really nice to get merged :) |
@andygrunwald – can you take a look at this PR? We have a confirmations above that this PR fixes the bug, including folks using my downstream project, which is currently importing a fork of this repo which carries the patch: |
This would really be nice to have merged - it must be failing for a lot of people...
|
What type of PR is this?
What this PR does / why we need it:
Currently requests built using the AddComment() and UpdateComment() functions will fail (HTTP 400) due to a schema mismatch. Because Author and UpdateAuthor properties are not pointers, they get marshalled into the resulting JSON body, rather than being omitted via omitempty.
This change brings the Comment struct type in line with other structs that using pointers for Author and UpdateAuthor properties.
Which issue(s) this PR fixes:
#604
Fixes #
Special notes for your reviewer:
Additional documentation e.g., usage docs, etc.: