Method Check
Check(AvroSchema, AvroSchema, AvroCompatibilityOptions?)
Checks whether data written with writerSchema can be read with readerSchema.
public static AvroCompatibilityResult Check(AvroSchema writerSchema, AvroSchema readerSchema, AvroCompatibilityOptions? options = null)
Parameters
writerSchemaAvroSchemaThe schema the data is written with.
readerSchemaAvroSchemaThe schema to read the data with.
optionsAvroCompatibilityOptions
Returns
- AvroCompatibilityResult
The verdict, every incompatibility and the warnings.
Examples
var result = AvroSchemaCompatibility.Check(writerSchema: v1, readerSchema: v2);
if (!result.IsCompatible)
{
Console.WriteLine(result); // the verdict, then "$.items[].sku: ..." lines
}