Skip to content

Add headers to custom Serde and Serde validation errors. #1803

@marcosschroh

Description

@marcosschroh

Issue submitter TODO list

  • I've searched for an already existing issues here
  • I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?

No

Describe the feature you're interested in

I would like to add extra headers when using a custom plugin Serde with kafka-ui, then the end user won’t have to always populate the some headers that are always needed when producing an event. Can we extend the serde API to add the ability to include extra headers when producing an event?

Another question that I have with custom serde, is how we can raise a validation error with 400 status code? Now I am raising java exceptions, for example IllegalArgumentException which ends in a 500.

Thanks

Describe alternatives you've considered

Looking at the open issues, this will also achieve the same goal that I have. Having pre populated headers in the UI will be incredible helpful

Version you're running

tag: 828c82b

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions