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 working on a IOpenApiDocumentTransformer for the new Microsoft.AspNetCore.OpenApi of .NET 9.
I'm trying to find the context (OpenApiDocumentTransformerContext) of a single operation but I can't find a way besides using some internal methods.
As you can see, right now I'm using the combination of Path and OperationType as key to connect items from OpenApiDocument and OpenApiDocumentTransformerContext.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a
IOpenApiDocumentTransformer
for the newMicrosoft.AspNetCore.OpenApi
of .NET 9.I'm trying to find the context (
OpenApiDocumentTransformerContext
) of a single operation but I can't find a way besides using some internal methods.My Transformer:
https://github.com/ctyar/SwaggerUi.OpenApi/blob/main/src/SwaggerUi.OpenApi/AuthResponseStatusCodeTransformer.cs#L32-L35
As you can see, right now I'm using the combination of
Path
andOperationType
as key to connect items fromOpenApiDocument
andOpenApiDocumentTransformerContext
.But to get those I'm using two internal methods https://github.com/ctyar/SwaggerUi.OpenApi/blob/main/src/SwaggerUi.OpenApi/AuthResponseStatusCodeTransformer.cs#L57-L58
Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions