79480841

Date: 2025-03-03 11:26:07
Score: 1
Natty:
Report link

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>,
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: littlebot18