Skip to content

Content Type is shown as Json, but the message is serialized with Avro #1587

@etrandafir93

Description

@etrandafir93

Describe the bug

The Content-Type field on the UI is a bit misleading:

  • When using SpringWolf for Kafka with an Avro serializer, the Content Type field shows application/json (the default)
  • Even though the content type is displayed as application/json, publishing messages from the UI still pushes them using the Avro serializer - so bascially it says json, but it's actually using avro for the serialization, which is good.
  • If I try to overwrite this with @AsyncMessage(contentType = "application/*+avro"), the UI fails to display the schema, and we cannot publish test messages (I guess this type is not supported)

Dependencies and versions used

  • springwolf-ui version 1.20.0

Code example

This can also be reproduced/observed in the official avro exmaple

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions