You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operation auth method scopes in template currently hold all defined scopes for specific security definition.
Swagger 2.* populates the list only with scopes defined for that particular operation.
Example:
If operation1 requires scope:op1, but there's also scope:op2 defined globally, then
Is this change intended? It's neven been questioned in that issue.
I could find that ada server generator fixes it at higher level (#1044), but shouldn't it be responsibility of base codegen?
Is there a more direct way for a template to access scopes required only by operation itself?
openapi-generator version
3.3.4
The text was updated successfully, but these errors were encountered:
Yes, I agree with you that fixing this in the base codegen would be better, but I guess it has an impact on all code generators if you do it.
What I did for the Ada server code generator was a simple work around to give access to specific variables that give the template the required information.
Description
Operation auth method scopes in template currently hold all defined scopes for specific security definition.
Swagger 2.* populates the list only with scopes defined for that particular operation.
Example:
If operation1 requires
scope:op1
, but there's alsoscope:op2
defined globally, thenswagger codegen produces
openapi generator produces
This issue was mentioned before in #1043.
Is this change intended? It's neven been questioned in that issue.
I could find that ada server generator fixes it at higher level (#1044), but shouldn't it be responsibility of base codegen?
Is there a more direct way for a template to access scopes required only by operation itself?
openapi-generator version
3.3.4
The text was updated successfully, but these errors were encountered: