cloudevents-generator

Helps produce, consume, and collaborate on CloudEvents easier.

View the Project on GitHub michaelawyu/cloudevents-generator

Populating attributes automatically

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

CloudEvents Generator will ignore all the other optional fields in the attribute specification, except for description, if auto and format are present and valid.

Supported formats

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