Skip to main content

write_temp_spec

Function write_temp_spec 

Source
pub fn write_temp_spec(spec: &Value) -> (TempDir, PathBuf)
Expand description

Write a JSON value as an OpenAPI spec file to a temporary directory.

Returns (TempDir, PathBuf) — keep TempDir alive for the test duration.

§Panics

Panics if the temporary directory or file cannot be created.