Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filterWithReference method to ParameterContainer #121

Open
JonathanMontane opened this issue Apr 12, 2017 · 0 comments
Open

Add filterWithReference method to ParameterContainer #121

JonathanMontane opened this issue Apr 12, 2017 · 0 comments

Comments

@JonathanMontane
Copy link
Contributor

Currently, if there are references in a ParameterContainer, one must first resolve all the References, then filter out the Parameters, and then if one wants to keep the concept of shared parameters in the context, one has to iterate over the resolved and filtered ParameterContainer to get the Ids of the corresponding Parameters in the original ParameterContainer and filter it with this set of keys, which is painful.

Adding the following method:

container.filterWithReference(store, constraints)

would simplify this process greatly.

Note: There are currently no formats that we support where this is needed, but with the addition of swagger v3, it could potentially appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant