netwo-io/apistos

New update is not compatible with macro mode of actix_web_grants

Closed this issue · 0 comments

First of all thank you for quick fix about last feature request. It solved my biggest issues. This issue is not critical but would-be-nice type of issue. Error is:

When I wrote like that api operation throws bunch of errors.

#[actix_web_grants::protect("ADMIN")]
#[api_operation(
    tag = "test",
    summary = "test endpoint",
    skip_args = "identity"
)]
pub async fn test_fun(

Errors:
error[E0599]: no function or associated item named `parameters` found for struct `AuthDetails` in the current scope

function or associated item not found in `ResponseWrapper<Box<dyn Future<Output = Either<Result<HttpResponse, Error>, HttpResponse>> + Unpin>, ...>`

error[E0599]: no function or associated item named `required` found for struct `AuthDetails` in the current scope