Skip to main content

assert_no_drift

Function assert_no_drift 

Source
pub fn assert_no_drift(openapi: &OpenApi, committed_path: impl AsRef<Path>)
Expand description

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

ยงPanics

Panics with a drift summary or serialization/I/O error. Use check_no_drift when the caller should handle the error.