Skip to content

Redundant event type parameter in the API #33

Closed
@afrittoli

Description

@afrittoli

To create a CDEvent with the Java SDK, I can do:

            CloudEvent prfe = CDEventTypes.createPipelineRunFinishedEvent(
                CDEventConstants.CDEventTypes.PipelineRunFinishedEvent.getEventType(),
                "id", uri, "name", uri,
                        CDEventConstants.Outcome.OutcomeSuccess, "errors", "data");

The first parameter requires is the type, but that seems redundant since the create methods are client specific anyways

Metadata

Metadata

Assignees

No one assigned

    Labels

    releasedIssue has been released

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions