Table of Contents

Method Check

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

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

writerSchema AvroSchema

The schema the data is written with.

readerSchema AvroSchema

The schema to read the data with.

options AvroCompatibilityOptions

The options, or null for Default.

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
}