Helps produce, consume, and collaborate on CloudEvents easier.
View the Project on GitHub michaelawyu/cloudevents-generator
This document discusses how to set up an auto-populated attribute using CloudEvents Generator.
The event library prepared by CloudEvents Generator can populate a string
attribute automatically if no other values are provided. To create such an
attribute, you must
formats in the attribute specificationauto field to true in the attribute specificationCloudEvents Generator will ignore all the other optional fields in the
attribute specification, except for description, if auto and format
are present and valid.
At this moment you may use one of the following formats:
The following example describes an auto-populated attribute data of the
UUIDv4 format:
attributes:
data:
type: string
format: UUIDv4
auto: true