Skip to content

Conversation

@afrittoli
Copy link
Contributor

Simplify the SDK user experience by exposing methods to create
directly specific events, rather then having a single method
that creates events by type and requires type assertions to
access event specific attributes.

I preserved the factory method that creates the events by type
for now as it's convenient for testing all the various events
in one unit test.

Signed-off-by: Andrea Frittoli [email protected]

/cc @xibz

Simplify the SDK user experience by exposing methods to create
directly specific events, rather then having a single method
that creates events by type and requires type assertions to
access event specific attributes.

I preserved the factory method that creates the events by type
for now as it's convenient for testing all the various events
in one unit test.

Signed-off-by: Andrea Frittoli <[email protected]>
@afrittoli afrittoli merged commit a82eab4 into cdevents:main Aug 24, 2022
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.

1 participant