-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional CloudEvent fields (pubsubname, topic, time, etc) (#866)
* Added additional CloudEvent fields (pubsubname, topic, time, traceid, traceparent, & tracestate) Added the com.fasterxml.jackson:jackson-datatype-jsr310 dependency to handle serdes of OffsetDateTime for the CloudEvent time field via ObjectMapper settings .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false) & .findAndRegisterModules() Updated com.fasterxml.jackson dependencies to the latest 2.15.1 Added OffsetDateTime as timeValue to test the DefaultObjectSerializer Added more tests for new & old CloudEvent fields in CloudEventTest & DefaultObjectSerializerTest Signed-off-by: Luke Sieben <[email protected]> * Refactored new field names to be camelCase Removed the 2 new constructors Signed-off-by: Luke Sieben <[email protected]> * Added @JsonProperty("{lowercasename}")s to properly serdes camelCaseNames as JSON/OBJECT_MAPPER are case-sensitive Signed-off-by: Luke Sieben <[email protected]> * Removed com.fasterxml.jackson.datatype:jackson-datatype-jsr310 dependency in favor of custom field level serdes for time Signed-off-by: Luke Sieben <[email protected]> * Fixed "Line is longer than 120 characters" build issue by pushing the end of the offending lines to a new line Signed-off-by: Luke Sieben <[email protected]> * Added more CloudEvent test cases to appease Codecov Signed-off-by: Luke Sieben <[email protected]> * Added null binaryData test case for Codecov Signed-off-by: Luke Sieben <[email protected]> * Added cloudEventDifferent test cases for Codecov Signed-off-by: Luke Sieben <[email protected]> * Removed extraneous ; Signed-off-by: Luke Sieben <[email protected]> * Added comments for time test cases Signed-off-by: Luke Sieben <[email protected]> --------- Signed-off-by: Luke Sieben <[email protected]> Co-authored-by: Dapr Bot <[email protected]> Co-authored-by: Cassie Coyle <[email protected]>
- Loading branch information
1 parent
3dc2a90
commit fdb4200
Showing
4 changed files
with
447 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.