Skip to content
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

Allow callers to omit event_type when event data is a struct #118

Merged
merged 1 commit into from
May 28, 2018

Conversation

OleMchls
Copy link
Contributor

As explained in #116 event_type is required for each event to be passed into eventstore even though it could be detected within the app. This is the technical implementation to add the possibility to omit this argument when a struct is passed.

A possible second step that is not part of this PR could be to refactor/rewrite the documentation to remove the event_type from the examples and thus invert the regular flow to omit it, and only pass it when needed.


fixes #116

@slashdotdash slashdotdash merged commit ad6bc17 into commanded:master May 28, 2018
@slashdotdash
Copy link
Member

Thanks for the pull request @OleMchls.

@OleMchls OleMchls deleted the feature/guess-event-type branch May 28, 2018 14:51
@slashdotdash slashdotdash changed the title allow callers to omit event_type when event data is a struct Allow callers to omit event_type when event data is a struct May 28, 2018
slashdotdash added a commit that referenced this pull request May 28, 2018
Add Ole Michaelis to contributors section in README.
slashdotdash added a commit that referenced this pull request May 29, 2018
Add Ole Michaelis to contributors section in README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically populate event_type in EventStore.EventData
2 participants