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

Consider adding Path and Type properties to OpenApiOperation #1655

Open
glen-84 opened this issue May 3, 2024 · 1 comment
Open

Consider adding Path and Type properties to OpenApiOperation #1655

glen-84 opened this issue May 3, 2024 · 1 comment

Comments

@glen-84
Copy link

glen-84 commented May 3, 2024

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

If you have an operation object, there's no way to access the path or type of the operation without iterating over all paths so that you have access to this information. It seems logical for these to be properties of the operation, even if this is structured differently in the actual document text.

Describe the solution you'd like

Consider setting operation.Type and operation.Path to the applicable values.

Describe alternatives you've considered

  1. Storing this information separately, in a dictionary like:
    Dictionary<string, (OperationType OperationType, string Path, OpenApiOperation Operation)>
  2. Storing this information in Extensions.

Additional context

n/a

@Agnibaan
Copy link

Working on it...

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

2 participants