-
Notifications
You must be signed in to change notification settings - Fork 461
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
Prevents Object
from being serialized on the Event
resource
#798
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.
@@ -33,7 +33,7 @@ type EventRequest struct { | |||
|
|||
// EventData is the unmarshalled object as a map. | |||
type EventData struct { | |||
Object map[string]interface{} | |||
Object map[string]interface{} `json:"-"` |
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.
Do you think that we could add a comment here that explains that despite the json:"-"
, this property will be populated independently? Maybe something like:
Object is a raw mapping of the API resource contained in the event.
Although marked with
json:"-"
, it's still populated independently by a customUnmarshalJSON
implementation.
c9a0e11
to
10eefd7
Compare
10eefd7
to
15bb861
Compare
@brandur thanks for the recommendation. Added your proposal. PTAL |
Bumps [mocha](https://github.com/freerange/mocha) from 1.14.0 to 1.15.0. - [Release notes](https://github.com/freerange/mocha/releases) - [Changelog](https://github.com/freerange/mocha/blob/main/RELEASE.md) - [Commits](freerange/mocha@v1.14.0...v1.15.0) --- updated-dependencies: - dependency-name: mocha dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fixes #797
r? @brandur-stripe
cc @stripe/api-libraries