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
I have schema with globally set security for all paths. But some of the paths override global security with empty value to disable security. When I generate http client for such schema all method calls have security: true, even the methods which overriden value.
Expected result: auth/login path should have secure: false (because it is overriden) and token/revoke should have secure: true (as in global parameter)
I have schema with globally set security for all paths. But some of the paths override global security with empty value to disable security. When I generate http client for such schema all method calls have
security: true
, even the methods which overriden value.Minimum reproduction schema:
Expected result:
auth/login
path should havesecure: false
(because it is overriden) andtoken/revoke
should havesecure: true
(as in global parameter)Actual result:
All methods have
secure: true
:Possible solution
Seems like this condition need to be updated:
https://github.com/acacode/swagger-typescript-api/blob/master/src/routes.js#L562-L565
The text was updated successfully, but these errors were encountered: