We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af466f2 commit 851d987Copy full SHA for 851d987
generate.sh
@@ -42,6 +42,8 @@ sed -i 's/Result<models::CurrentUser, Error<GetCurrentUserError>>/Result<models:
42
# https://github.com/vrchatapi/vrchatapi-rust/pull/29
43
sed -i "s/local_var_req_builder = local_var_req_builder.json(&\(.*\));/if let Some(\1) = \1 { \0 }/g" src/apis/files_api.rs
44
45
+sed -i 's|// TODO: support file upload for '\''file'\'' parameter|let part = reqwest::multipart::Part::bytes(std::fs::read(\&file).unwrap()).file_name(file.file_name().unwrap().to_string_lossy().to_string()).mime_str(if file.file_name().unwrap().to_string_lossy().to_string().ends_with("png") { "image/png" } else { "application/octet-stream" })?;\n\tlocal_var_form = local_var_form.part("file", part);|' src/apis/files_api.rs
46
+
47
cargo fmt
48
cargo build
49
cargo test
0 commit comments