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

Redesigned EventBuilder #53

Merged
merged 7 commits into from
May 26, 2020

Conversation

slinkydeveloper
Copy link
Member

@slinkydeveloper slinkydeveloper commented May 26, 2020

Fix #40 and improves the usability of the builder. Now the builders implements:

  • Clone for using a builder as a template
  • From<Event> to create a builder starting from an Event
  • Default to create an EventBuilder filled with some default values

Also now you don't need to use Url and DateTime<Utc> directly as types for source/dataschema and time. The signatures of the builders accept both these types and the string representations, in order to simplify the usage of the builder.

Important changes:

This PR also moves the builder tests in tests

@slinkydeveloper slinkydeveloper added this to the 0.2 milestone May 26, 2020
@slinkydeveloper slinkydeveloper added the enhancement New feature or request label May 26, 2020
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
@slinkydeveloper slinkydeveloper merged commit b832b6b into cloudevents:master May 26, 2020
@slinkydeveloper slinkydeveloper deleted the issues/40 branch May 26, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EventBuilder should fail if user didn't set the mandatory values
2 participants