Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get operation by ID or ref #1654

Open
glen-84 opened this issue May 3, 2024 · 0 comments
Open

Get operation by ID or ref #1654

glen-84 opened this issue May 3, 2024 · 0 comments

Comments

@glen-84
Copy link

glen-84 commented May 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant