openapi_3_dot_1_compat

openapi_3_dot_1_compat(spec_file: Path) Generator[Path, None, None][source]

Context manager to downgrade openapi 3.1 specs to 3.0 specs.

Parameters:

spec_file (Path) – Path to original spec file.

Yields:

Path – Path to temporary compat file.

Raises:

ValueError – If file format is not supported.