dapr / docs

Dapr user documentation, used to build docs.dapr.io
https://docs.dapr.io
Creative Commons Attribution 4.0 International
994 stars 726 forks source link

Misleading information for kafka-pubsub avro support #4087

Closed passuied closed 5 months ago

passuied commented 6 months ago

Describe the issue The documentation added for kafka-pubsub Avro support was misleading when it comes to rawPayload requirements. Adjusting accordingly

URL of the docs https://docs.dapr.io/reference/components-reference/supported-pubsub/setup-apache-kafka/#avro-schema-registry-serializationdeserialization

Expected content rawPayload=true metadata is only needed when publishing but not when consuming a message. When adding rawPayload=true to subscription, it will wrap the message in CloudEvent and base64 encode it, which is not the desired outcome. Messages should come as deserialized json (from Avro).

Screenshots image

Additional context N/A