Generator configuration
kafkaKeyAvroSchemaHint
Commentary
added in 0.3.8
local configuration
Deprecated: See avroSchemaHint
instead.
When using the Kafka Avro serializer, explicitly defines the Avro schema for the key.
Examples
Overriding the Avro schema
Set kafkaKeyAvroSchemaHint
to the exact Avro schema you want ShadowTraffic to register with Schema Registry.
{
"generators": [
{
"topic": "customers",
"key": {
"_gen": "uuid"
},
"localConfigs": {
"kafkaKeyAvroSchemaHint": {
"type": "string"
}
}
}
]
}
Specification
JSON schema
{}