Method CheckVersions
CheckVersions(AvroSchema, IReadOnlyList<AvroSchema>, AvroCompatibilityLevel, AvroCompatibilityOptions?)
Checks a new version of a schema against earlier ones at a schema registry's level:
backward levels check that schema reads the earlier versions' data, forward levels that the
earlier versions read its data, and transitive levels check every earlier version rather than the latest.
public static AvroCompatibilityReport CheckVersions(AvroSchema schema, IReadOnlyList<AvroSchema> previousVersions, AvroCompatibilityLevel level, AvroCompatibilityOptions? options = null)
Parameters
schemaAvroSchemaThe new schema.
previousVersionsIReadOnlyList<AvroSchema>The earlier versions, oldest first.
levelAvroCompatibilityLevelThe compatibility level.
optionsAvroCompatibilityOptions
Returns
- AvroCompatibilityReport
Each pair checked and the worst verdict.