OpenAPI.NET icon indicating copy to clipboard operation
OpenAPI.NET copied to clipboard

Get operation by ID or ref

Open glen-84 opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

I have an OpenApiLink object, which has either an OperationId or an OperationRef, but I can't find a way to access the Operation object that these refer to.

Describe the solution you'd like

Either an Operation property on the OpenApiLink object that holds the "resolved" operation, or methods like openApiDocument.GetOperationById(string operationId) and openApiDocument.GetOperationByRef(string operationRef).

Describe alternatives you've considered

For operation IDs, constructing a dictionary of operations, keyed by operation ID, and using that. I don't know about operation refs though.

Additional context

n/a

glen-84 avatar May 03 '24 09:05 glen-84