cloud_events 0.6.0
v0.6.0 / 2021-08-23
This update further clarifies and cleans up the encoding behavior of event payloads. In particular, the event object now includes explicitly encoded data in the new data_encoded field, and provides information on whether the existing data field contains an encoded or decoded form of the payload.
- Added
data_encoded,data_decoded?anddata?methods toCloudEvents::Event::V1, added:data_encodedas an input attribute, and clarified the encoding semantics of each field. - Changed
:attributeskeyword argument in event constructors to:set_attributes, to avoid any possible collision with a real extension attribute name. (The old argument name is deprecated and will be removed in 1.0.) - Fixed various inconsistencies in the data encoding behavior of
JsonFormatandHttpBinding. - Support passing a data content encoder/decoder into
JsonFormat#encode_eventandJsonFormat#decode_event. - Provided
TextFormatto handle media types with trivial encoding. - Provided
Format::Multito handle checking a series of encoders/decoders.