You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the RequestId middleware with poem_openapi. Every operation takes a custom RequestId type as an argument (which extracts the header added by the middleware) for use in the operation itself. Since the header is added by middleware, I don't want it to appear in the generate OpenAPI spec. A #[oai(hidden)] attribute would be a nice parallel with the same attribute on the operation.
Code example (if possible)
#[OpenAPI]implApi{#[oai(...)]asyncfnoperation(&self,#[oai(hidden)]request_id:RequestId,// This
...,) -> Result<()>{todo!()}}
The text was updated successfully, but these errors were encountered:
Description of the feature
I'm using the RequestId middleware with
poem_openapi
. Every operation takes a customRequestId
type as an argument (which extracts the header added by the middleware) for use in the operation itself. Since the header is added by middleware, I don't want it to appear in the generate OpenAPI spec. A#[oai(hidden)]
attribute would be a nice parallel with the same attribute on the operation.Code example (if possible)
The text was updated successfully, but these errors were encountered: