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

Support for plugins to add multiple paths at once #126

Open
tinproject opened this issue May 9, 2017 · 0 comments
Open

Support for plugins to add multiple paths at once #126

tinproject opened this issue May 9, 2017 · 0 comments

Comments

@tinproject
Copy link

In #68 it shows the need for plugins to add multiple paths at one time.

I'm currently implementing a Apispec.add_paths() function, but I don't feel this is the better way to do this.

I've thinking that allowing path helpers to return a list of Path objects, in addition to Path object, is better and easier. Perhaps refactor the code that add a Path object to the spec to an internal method and leave in add_path() the code to extract the Path objects and pass it to the internal method.

@sloria What do you think?

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

No branches or pull requests

1 participant