You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. Is there any way i can tell openapi to take concrete type?
For example, i created this route and when documentation generated, request body type of data argument is application/octet-stream (because its Data type, i know) and then all example requests have 'Content-Type: application/octet-stream'. But how to explain it to OpenApi?
By the way, im a bit new in Rust, maybe i have missed something?
UPD: For more info, i saw something similar in utoipa, but i dont prefer this crate.
#[openapi(tag = "Uploader", ignore = "content_type")]#[post("/upload", format = "multipart/form-data", data = "<data>")]asyncfntest_uploader(data: rocket::Data<'_>,content_type:&ContentType) -> (Status,Value){
...}
The text was updated successfully, but these errors were encountered:
Hi there. Is there any way i can tell openapi to take concrete type?
For example, i created this route and when documentation generated, request body type of data argument is application/octet-stream (because its Data type, i know) and then all example requests have 'Content-Type: application/octet-stream'. But how to explain it to OpenApi?
By the way, im a bit new in Rust, maybe i have missed something?
UPD: For more info, i saw something similar in utoipa, but i dont prefer this crate.
The text was updated successfully, but these errors were encountered: