Payload Schema Mapping Plugin
The payload-schema-mapping
plugin is used to map the schema IDs of the payloads in the data.
This is useful when migrating data from one environment to another,
where the schema IDs of the keys are different in the two.
For each message that is processed by the plugin, the plugin will map the schema ID of the payload to a new schema ID. It does this by looking up the schema id in the mapping that is defined in the plugin specification, and replacing the schema ID of the payload with the new schema ID (by replacing the magic byte.
Defining the mapping
The mapping is defined in the mapping
field of the plugin specification.
The mapping is an object that contains the source schema IDs as keys and the target schema IDs as values.
In this example,
- the plugin will map the schema with id
10001
to the schema with id20001
. - the plugin will map the schema with id
10002
to the schema with id20002
.