Record Transcode Consume

Convert records for a specific topic to JSONv1.3+

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

This example embeds the target JSON schema directly in the policy using inline, and validates the converted value against it before delivering the record to the client.

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!