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

Removed unused attributes #14

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Removed unused attributes #14

merged 1 commit into from
Aug 10, 2023

Conversation

stevenhartley
Copy link

The following change removes datacontenttype and dataschema from cloudevent attributes as they are optional and not used/needed. To support this change, Jackson JSON parser needs to be explicitly told that the data is always base64 encoded.

#13

The following change removes datacontenttype and dataschema from
cloudevent attributes as they are optional and not used/needed. To support
this change, Jackson JSON parser needs to be explicitly told that the
data is always base64 encoded.

#13
Copy link

@LinsonI LinsonI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor comment

@@ -176,8 +176,10 @@ static CloudEventBuilder buildBaseCloudEvent(String id, String source,
final CloudEventBuilder cloudEventBuilder = CloudEventBuilder.v1()
.withId(id)
.withSource(URI.create(source))
/* Not needed:
.withDataContentType(PROTOBUF_CONTENT_TYPE)
.withDataSchema(URI.create(protoPayloadSchema))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the following argument from the method:
Line 174: String protoPayloadSchema,

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removal of the argument will cause IoP issues so I prefer not to for now.

@stevenhartley stevenhartley merged commit 84d05ff into main Aug 10, 2023
1 check passed
@stevenhartley stevenhartley deleted the CE_Cleanup branch November 10, 2023 19:31
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.

3 participants