Record Transcode Produce

Convert records for a specific topic to Avrov1.3+

Use condition to apply this policy only to records produced to a specific topic, so records on other topics parsed by the same Schema Validation policy pass through without conversion.

This example uses reference to look up the target Avro schema in a schema registry, computing the subject from the topic name and always using the latest version, and records the schema reference in a header using record_header.

Prerequisites

Environment variables

  • PARENT_POLICY_ID: The UUID of the parent Schema Validation policy.

Set up the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!