pub async fn fetch_spec(url: &str) -> Result<String, Error>Expand description
Fetch an OpenAPI spec from a URL.
Returns the raw JSON string for parsing with parse_spec.
Categorizes fetch errors for actionable diagnostics:
connection refused, timeout, decode errors, non-2xx status, non-JSON content.