Skip to content

Commit

Permalink
Using toString rather than name (apache#3402)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Feb 13, 2024
1 parent d77a66e commit 415e987
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ private <T> Optional<OutgoingCloudEventMetadata<?>> getMetadata(DataEvent<T> eve
}
OutgoingCloudEventMetadataBuilder<Object> builder = OutgoingCloudEventMetadata.builder().withId(event.getId()).withSource(event.getSource()).withType(event.getType())
.withSubject(event.getSubject())
.withDataContentType(event.getDataContentType()).withDataSchema(event.getDataSchema()).withSpecVersion(event.getSpecVersion().name()).withTimestamp(event.getTime().toZonedDateTime());
.withDataContentType(event.getDataContentType()).withDataSchema(event.getDataSchema()).withSpecVersion(event.getSpecVersion().toString())
.withTimestamp(event.getTime().toZonedDateTime());
for (String extName : event.getExtensionNames()) {
builder.withExtension(extName, event.getExtension(extName));
}
Expand Down

0 comments on commit 415e987

Please sign in to comment.