| Crates.io | aide-axum-typed-multipart-2 |
| lib.rs | aide-axum-typed-multipart-2 |
| version | 0.16.0 |
| created_at | 2025-02-06 15:13:16.740269+00 |
| updated_at | 2025-06-13 14:29:21.62734+00 |
| description | Type safe multipart/form-data handling for axum and aide |
| homepage | |
| repository | https://github.com/Zizico2/aide-axum-typed-multipart-2 |
| max_upload_size | |
| id | 1545732 |
| size | 59,192 |
Wrapper around axum_typed_multipart
to generate documentation for multipart requests.
use aide_axum_typed_multipart::{FieldData, TypedMultipart};
use axum::{http::StatusCode};
use bytes::Bytes;
use axum_typed_multipart::TryFromMultipart;
use schemars::JsonSchema;
#[derive(TryFromMultipart, JsonSchema)]
struct MyMultipart {
title: String,
description: String,
#[form_data(limit = "unlimited")]
image: FieldData<Bytes>,
}
async fn post_hello_world(_: TypedMultipart<MyMultipart>) -> StatusCode {
// do something
return StatusCode::OK;
}
All code in this repository is dual licensed under MIT and Apache-2.0.