Skip to content

Propagating Openapi SDK errors in existing Result pipeline #11

Description

@francescobianco

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions