You need to add this on your "file" field un your struct :
#[schema(value_type = String, format = Binary)]
You will get something like that :
#[derive(ToSchema)]
#[allow(unused)]
struct UploadedFile {
#[schema(value_type = String, format = Binary)]
file: Vec<u8>,
}