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

🦀 A fully-featured and blazing-fast Rust API client to interact with @Openapi®

Results openapi-rust-sdk issues
Sort by recently updated
recently updated
newest added

Fixes #11. This change adds a public openapi_sdk::Error type and openapi_sdk::Result alias so downstream projects can integrate SDK failures into their own error enums with From and continue using ?...

My CLI project uses: ``` #[tokio::main] async fn main() { let sdk = openapi_sdk::Client::new("API_KEY"); sdk.get_products().await.unwrap(); } ``` Sometimes I get Runtime already running errors when calling from subcommands. How to...

good first issue
help wanted

Using SDK in a Tauri backend for a desktop app: ``` tauri::Builder::default() .invoke_handler(tauri::generate_handler![get_products]) ``` get_products calls SDK async methods. Frontend freezes. Suggestions for bridging Openapi SDK async calls to Tauri...

good first issue
help wanted

I have existing Serde structs in my project: ``` #[derive(Serialize, Deserialize)] struct User { id: u64, name: String } ``` SDK returns slightly different JSON (user_id instead of id). Is...

good first issue
help wanted

I want to fetch Accounts (for my CRM, eg Companies, Business names, VAT Codes) from SDK and insert into Postgres: ``` let products = client.get_products().await?; sqlx::query!("INSERT INTO products ...").execute(&pool).await?; ```...

help wanted

Using SDK in an Axum route: ``` async fn get_data() -> Json { let items = client.get_items().await.unwrap(); Json(items) } ``` Some requests block unexpectedly. Is there a recommended pattern for...

documentation
good first issue

I have CLI commands with Clap: ``` let matches = App::new("CLI").get_matches(); if let Some(_) = matches.subcommand_matches("fetch") { sdk.get_users().await.unwrap(); } ``` Compiling fails because async calls are not allowed in main....

bug

Trying to call SDK from Yew component: ``` wasm_bindgen_futures::spawn_local(async move { let users = client.get_users().await.unwrap(); }); ``` Compilation fails with Client not wasm-bindgen compatible. Is there a recommended approach for...

documentation
enhancement

In a project with existing error handling: ``` fn fetch_users() -> Result { let users = client.get_users().await?; Ok(users) } ``` Errors from SDK do not convert cleanly to MyError. How...

bug
good first issue

When trying to store Client in Rocket state: ``` #[launch] fn rocket() -> _ { rocket::build().manage(openapi_sdk::Client::new("API_KEY")) } ``` Compiler complains about lifetimes. Need guidance on using Openapi SDK client in...