1 unstable release
0.13.0 | Mar 6, 2024 |
---|
#25 in #multipart-form
78 downloads per month
3.5MB
7K
SLoC
aide-axum-typed-multipart
Wrapper around axum_typed_multipart
to generate documentation for multipart requests.
Example
use aide_axum_typed_multipart::{FieldData, TypedMultipart};
use axum::{body::Bytes, http::StatusCode};
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;
}
Dependencies
~13–24MB
~424K SLoC