diff --git a/basics/upayloadformat.adoc b/basics/upayloadformat.adoc index 6a5e02a..c9ff47b 100644 --- a/basics/upayloadformat.adoc +++ b/basics/upayloadformat.adoc @@ -26,6 +26,11 @@ The following table provides an overview of the payload formats supported by uPr |=== |UPayloadFormat |MIME Type |Payload encoding +| `UPAYLOAD_FORMAT_UNSPECIFIED` +| N/A +| Payload format was not specified so we cannot assume a format and automatically deserialize the payload, the client needs to know what payload format is, + + |`UPAYLOAD_FORMAT_PROTOBUF_WRAPPED_IN_ANY` |`application/x-protobuf` |The message payload *MUST* be the network byte order serialization of a `google.protobuf.Any` structure that contains the payload itself along with the schema URI indicating the (protobuf) type of the payload. diff --git a/up-core-api/uprotocol/v1/uattributes.proto b/up-core-api/uprotocol/v1/uattributes.proto index a1bc693..66ff298 100644 --- a/up-core-api/uprotocol/v1/uattributes.proto +++ b/up-core-api/uprotocol/v1/uattributes.proto @@ -124,8 +124,7 @@ enum UPriority { // The format for the data stored in the UMessage. enum UPayloadFormat { - // Payload format was not is not set, - // per specification, assumption is UPAYLOAD_FORMAT_PROTOBUF_WRAPPED_IN_ANY + // Payload format was not specified. UPAYLOAD_FORMAT_UNSPECIFIED = 0; // Payload is an Any protobuf message that contains the packed payload