Hi!
I haven't found any documentation that suggests this shouldn't work, but the OpenAPI doc generation doesn't seem to pick up arguments tagged with #[json] .
The Response field in the OpenAPI docs is generated appropriately. Do fields need to use the explicit request: Json<ActiveRequest> syntax instead?
#[post("/v1/test/active")]
#[openapi(id = "test_active")]
pub async fn test_set_active(
#[filter = "authtoken"] auth_token: Option<String>,
#[json] request: ActiveRequest
#[data] client: reqwest::Client,
) -> Result<Json<ActiveResponse>, Rejection>
Hi!
I haven't found any documentation that suggests this shouldn't work, but the OpenAPI doc generation doesn't seem to pick up arguments tagged with
#[json].The Response field in the OpenAPI docs is generated appropriately. Do fields need to use the explicit
request: Json<ActiveRequest>syntax instead?