When trying to apply the #[oasgen] macro to a route handler like this:
#[oasgen]
pub(super) async fn version_post<D>(
State(_state): State<AppState<D>>,
Json(payload): Json<RequestBody>,
) -> Result<OkResponse, ErrResponse>
where
D: Debug,
{
// route handler implementation
}
We get an error: Cannot find type "D" in this scope.
Is it possible to add retention of generics to the #[oasgen] macro generation?
When trying to apply the
#[oasgen]macro to a route handler like this:We get an error:
Cannot find type "D" in this scope.Is it possible to add retention of generics to the
#[oasgen]macro generation?