GREsau / GREsau/okapi

OpenAPI attribute appears to break named lifetimes in the route handler.

Open
#84 9 comments 2 reactions 1 assignee Claimed by @ralpha View on GitHub
bug rocket-okapi-codegen
Dominant language
Rust
Stars
740
Forks
127
PR merge metrics
No merged PRs in 30d

Description

image

Basically what the title says. 😄

If I change to `#[openapi(skip)]`, it works just fine, so I think there is some problem occurring with how the attribute generates code. The error message is

```
use of undeclared lifetime name `'r`
```

So, it seems like the attribute may be stripping the named lifetime argument from the method definition.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.