pub fn load_spec(
spec_ref: &str,
specs_dir: Option<&Path>,
) -> Result<OpenAPI, OpenApiError>Expand description
Load an OpenAPI spec from a file path or URL.
Supports JSON and YAML. If spec_ref is a relative path, resolves against specs_dir.