pub fn write_schema(
openapi: &OpenApi,
path: impl AsRef<Path>,
) -> Result<(), SchemaError>Expand description
Writes a deterministic schema atomically, creating parent directories when necessary.
The temporary file is created beside the destination so the final rename stays on the same filesystem.