-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Labels
enhancementNew feature or requestNew feature or requestopenapi-featuresOpenAPI features support issuesOpenAPI features support issues
Description
Description
I'm using OpenAPI extensions in my spec to mark which operations require auth, and if so which roles and permissions are required.
There's currently no way to access extensions on the operation in ogen in the middleware, even though we do have access to the operation id, name and description on the middleware.Request object.
It would be great if this object had a map of x- prefixed fields on the operation.
Currently, I'm parsing and serializing the extensions mapped by their operation id and then doing a lookup into that map at runtime, but that feels like a very roundabout way to do something that would be easy to do in this project.
I'm happy to do the implementation if you'd consider including this feature.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestopenapi-featuresOpenAPI features support issuesOpenAPI features support issues