* Configured the sql package
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Bootstrap implementation
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Literal done
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* More progress
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Progress
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Sync contract
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fix type cohercion for event type system
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* In expression + sync grammar
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Implemented binary expressions
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Implemented Like expression
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Big refactor
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* More testing
Fix math
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Implemented all the functions!
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Refactored logical expressions implementation
More testing
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* More coverage and tests
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fixed ConcatFunction and added ConcatWSFunction
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fixed IN type casting
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added ABS function
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fix SUBSTRING implementation
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* More nits
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* WIP Javadoc-ing
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fix division by 0
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Bootstrapped TCK
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added comparison operators to tck
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added logical operators, case sensitivity and casting functions
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Copied all the tests to the tck
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Removed Java tests now covered by the TCK
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added integer builtin test case
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Added fail fast evaluation mode
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* More changes
More Javadoc
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Typo
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Fix bad javadoc
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Another CONCAT_WS test case
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Import yaml just for testing
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* formats: Add support for protobuf format
Adds support for the Protocol Buffer CloudEvent format defined at
https://github.com/cloudevents/spec/blob/v1.0.1/protobuf-format.md.
Compiles the Proto3 file taken from the spec repo into generated Java
protobuf classes. These classes are used to convert the SDK
representation of a CloudEvent to and from the protobuf format.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Address feedback in PR #348
- Adds service file for event format autoloading
- Addresses some field access issues
- Treats unset fields as omitted
- Updates and adds documentation
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Add missing attribute writer methods for CloudEventBuilders
Without these methods, binary attributes are interpreted as
Strings instead of byte[].
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Added test data files.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Now executes tests related to wire-format files.
- Supports V03 dialect
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Added new ProtoCloudEventData construct to support proto message based data.
- Added some more test files.
- When the PR related to binary context attributes is merged we can extend the
test use-cases appropriately.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Merged changes related to binary context attributes.
- Modified proto format to process binary context attributes
- Added CloudEventData varient to hold proto messages (requires tests)
- Will add further tests once the failing test is addressed
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Added test for protobuf data
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Indicate that v0.3 events are supported by Protobuf Format
Even though the protobuf spec came out for v1, the attributes are
fairly easily mapped back to v0.3.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Add missing comments; fix formatting; minor refactoring
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Create a full Protobuf CloudEventWriter
Converts the ProtoContextWriter class to a ProtoCloudEventWriter class
and modifies the format code to use it instead of manually writing
data to the output.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* - Addressed Review Comments.
- Introduced a default ProtoDataWrapper
- Tests updated.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Address Review Comments
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Test cleanup and timezone testing
This does some tweaking to tests by moving to using assertj and fixing
whitespace. It also adds a new test to ensure that timezones are handled
correctly.
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
* Formatting cleanup
- Remove unecessary whitespace
- Fix Javadocs
- Delete unused code
Signed-off-by: Erik Paulson <epaulson@apexclearing.com>
Co-authored-by: Day, Jeremy(jday) <jday@paypal.com>
- Modfy logic that selects between structured and binary modes during reception.
- Introduced new test scenarios to veify behavior.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Introduced support for Binary attribute types.
Added test data example
Added unit-test for JSON Format
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* documentation tweak
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* - Addressed review comment.
- Removed the withContextAttribute(string, Integer).
- This should be a seperate PR, was mixed-in by accident.
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Address review comments
Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>
* Add Spring Cloud Function sample
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Fix example curl command with structured event
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Add support for RSockets with Spring
Also generically can support structured events with any Spring
API that works with Encoder and Decoder. There's a sample for
the RSocket case with a simple request-response echo server.
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Use supported mime types from format provider
Signed-off-by: Dave Syer <dsyer@vmware.com>
* fix: prevent NPE on deserializing JSON containing invalid `specversion` value
Signed-off-by: Mark Scott <mark@codebrewer.org>
* refactor: move test per PR review comment
Signed-off-by: Mark Scott <mark@codebrewer.org>
* Jackson javadocs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Reverted public constructor and deprecated it
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Halfway through it
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* That should be it
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Prettier run
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Removed code sample
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestions + fixed up the mess made by prettier
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestion
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Javadocs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Removed createReader for structured mode and refactored createReader(String, ApplicationProperties, byte[]) to createReader(String, ApplicationProperties, Section)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Spring Javadocs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Rebase fix
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Javadocs!!!
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Missing module name?
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Excluding javadocs
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* clean install only release artifacts, but verify them all!
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Reverted the crazy idea to use the release profile
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestions
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Suggestion
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Nit
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Nit
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Nit
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Add support for Message<CloudEvent>
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Add support for structured messages with Spring Message<?>
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Push private classes out to shared utilities
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Resolve some more review comments
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Restructure MessageReader and MessageWriter
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Remove integration test (depends on snapshots still)
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Simplify message converter but drop support for structured format
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Make HTTP optional
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Drop snapshot reporitory declarations
Signed-off-by: Dave Syer <dsyer@vmware.com>
* Messing up stuff
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Collapse CloudEventAttributesWriter and CloudEventAttributesWriter into CloudEventContextWriter
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
* Rebase fix
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
Supports MVC and WebFlux (blocking and non-blocking) HTTP.
User can work with `CloudEvent` as a `POJO` type and inject it
into `@ReqestMapping` methods.
Signed-off-by: Dave Syer <dsyer@vmware.com>
Co-authored-by: Oleg Zhurakousky <ozhurakousky@pivotal.io>
When a request contains an invalid event, the body handler doesn't
handle the exception, which leads to an unhandled exception.
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>