Skip to main content

run_verify_compatibility

Function run_verify_compatibility 

Source
pub async fn run_verify_compatibility(
    cmd: BuiltinCommand,
    state: &State,
) -> Result<ControlFlow, Error>
Expand description

Verify that a schema in AWS Glue Schema Registry has the expected compatibility policy, looked up by name.

A sink applies a compatibility policy only when it first creates a schema, and never overwrites it afterward. Record decoding cannot observe that policy, so this reads it back to assert the create path applied the intended value.

Arguments:

  • name (required): the schema name.
  • compatibility (required): the expected compatibility, e.g. backward or full. Matched case-insensitively.
  • registry (optional): registry name. Omit to target Glue’s implicit default registry.