The testSchemaCompatibility service tests whether a provided schema is
compatible with the latest registered schema version of a subject according to the configured
compatibility rules, returning a boolean result.
Input Parameters
| type (String, optional) |
The schema type. Currently supports "AVRO". If not specified,
defaults to AVRO. |
| subject (String, required) |
The subject name to test compatibility against. |
| content (String, required) |
The schema definition/content to test for compatibility. |
| references (Record list, optional) |
Array of schema references, each containing: |
| name (String, required) |
The reference name. |
| subject (String, required) |
The subject of the referenced schema. |
| version (Integer, required) |
The version of the referenced schema. |
|
$connectionName (String, required)
|
Name of the Kafka connection configured with the Confluent
Schema Registry. |
Output Parameters
|
compatible (Boolean, required)
|
Returns true if the schema is compatible with existing
schemas, false otherwise. |
| message (String, required)
|
The response message returned after the service execution,
including compatibility error details if incompatible. |