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

#9843: Sort out OAuth scopes for individual endpoints #12410

Open
wants to merge 2 commits into
base: 3.0.0
Choose a base branch
from

Conversation

ionel-sirbu-crunch
Copy link

This is a fix for issue #9843 .

According to the OpenAPI spec, one is supposed to define the superset of all OAuth scopes available globally for an API under the securitySchemes block, then reference only a required subset from those scopes for an individual endpoint. Example here.

As described in issue #9843 , the generated data model that is passed to the templating engine, regardless of language chosen, always uses the full list of OAuth scopes defined globally, ignoring the subset of references used for individual endpoints.

For context, I'm using io.swagger.codegen.v3:swagger-codegen-maven-plugin for my requirements, converting to static html (API documentation).

…ndpoint as a subset of the scopes defined in the `securitySchemes`.
@ionel-sirbu-crunch
Copy link
Author

ionel-sirbu-crunch commented Jun 11, 2024

Is there anything I need to do here? I don't quite understand from the auto-generated comment about workflows...
I hope this project is still maintained.

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

Successfully merging this pull request may close these issues.

1 participant