Skip to content

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.

@frantuma frantuma force-pushed the 3.0.0 branch 6 times, most recently from c824674 to 7e5274a Compare June 23, 2025 09:16
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