Skip to content

Conversation

@stueynz
Copy link

@stueynz stueynz commented Oct 23, 2020

In a non-trivial set of APIs with complex OAuth scopes; some clients want a 'simplified' openapi spec that covers just the stuff they're allowed to do.

So let's filter by --scopes allowing us to prune away the operations they're not allowed.

Recognised HTTP operations that don't have security element will be filtered based upon global security element as expected.

@MikeRalphson
Copy link
Contributor

Thanks, could you move the last commit to a new PR, as the functionality seems to be separate from the original intent?

@MikeRalphson
Copy link
Contributor

As I read this, the scopes option is mutually exclusive of the flags option. I can see the reason from a code perspective, but wonder if it is what users will expect. We at least need to call it out and warn if both are selected.

@MikeRalphson
Copy link
Contributor

Hi, appreciate it has been a long time, but if you're still interested in this PR, could you fix up the lint errors/warnings?

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.

2 participants