Skip to content

CloudEvent constructor should accept inline extensions #209

@lance

Description

@lance

There is no way to create a CloudEvent instance using the constructor and have the extensions initialized there. For example, this is not valid, but should work.

const ce = new CloudEvent({
  type: 'ex',
  source: '/path',
  extensions: {
    extension1: 'some data'
  }
});

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions