Skip to main content

check_no_drift

Function check_no_drift 

Source
pub fn check_no_drift(
    openapi: &OpenApi,
    committed_path: impl AsRef<Path>,
) -> Result<(), SchemaError>
Expand description

Checks that a committed schema exactly matches deterministic serialization of the document.

A missing committed file is reported as schema drift, while other read failures are reported as I/O errors.