Skip to content

Commit

Permalink
back out top level datacontenttype
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Dec 3, 2024
1 parent bfc108a commit 3b896e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public static CloudEvent ToCloudEvent<T>(this T message, string source) where T
Type = message.Descriptor.FullName,
Source = source,
Id = Guid.NewGuid().ToString(),
Datacontenttype = PROTO_DATA_CONTENT_TYPE,
Attributes = { { "datacontenttype", new CloudEvent.Types.CloudEventAttributeValue { CeString = PROTO_DATA_CONTENT_TYPE } } }
};
}
Expand Down
8 changes: 3 additions & 5 deletions protos/cloudevent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ message CloudEvent {
// Optional & Extension Attributes
map<string, CloudEventAttributeValue> attributes = 5;
map<string, string> metadata = 6;
string datacontenttype = 7; // MIME type

// -- CloudEvent Data (Bytes, Text, or Proto)
oneof data {
bytes binary_data = 8;
string text_data = 9;
google.protobuf.Any proto_data = 10;
bytes binary_data = 7;
string text_data = 8;
google.protobuf.Any proto_data = 9;
}

/**
Expand Down

0 comments on commit 3b896e9

Please sign in to comment.