Skip to content

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

@twitchax

Description

@twitchax

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrocket-okapi-codegenThis affects the rocket-okapi-codegen crate

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions