[BUG] OAuth scopes are being generated even when they doesn't belong to current flow
Created by: bilak
When generating oauth scopes for method, scopes are being copied from definition flows (securitySchemes
), but there is an issue when scope is copied from another flow even when it doesn't belong there.