json_schema
Checks messages against a provided JSONSchema definition but does not change the payload under any circumstances. If a message does not match the schema it can be caught using error handling methods.
Please refer to the JSON Schema website for information and tutorials regarding the syntax of the schema.
Fields
schema
A schema to apply. Use either this or the schema_path
field.
Type: string
schema_path
The path of a schema document to apply. Use either this or the schema
field.
Type: string
Examples
With the following JSONSchema document:
And the following Redpanda Connect configuration:
If a payload being processed looked like:
Then a log message would appear explaining the fault and the payload would be dropped.