Skip to content

Improve the docstring of abstract.CloudEvent #247

Open
@ncouture

Description

@ncouture

The getitem of this class goes on to describe that:

The `data` of the event should be accessed by the `.data` accessor rather
than this mapping.

providing a reason and perhaps a reference to an example would help developers understand why event.get() is discouraged by this helper method.

For instance, there is confusion in how the private _attributes data should be accessed expressed in #246.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions