openapi-rust-sdk icon indicating copy to clipboard operation
openapi-rust-sdk copied to clipboard

Propagating Openapi SDK errors in existing Result pipeline

Open francescobianco opened this issue 1 year ago • 0 comments

In a project with existing error handling:

fn fetch_users() -> Result<Vec<User>, MyError> {
    let users = client.get_users().await?;
    Ok(users)
}

Errors from SDK do not convert cleanly to MyError. How to integrate Openapi SDK errors into my project’s custom error type?

francescobianco avatar Oct 01 '25 09:10 francescobianco