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

Fixes in cache and pathParams validation #2

Merged
merged 3 commits into from Jan 19, 2018
Merged

Conversation

esvit
Copy link

@esvit esvit commented Jan 19, 2018

Hi, thanks, you created great library but I faced with the problem of caching routes with same path and different methods. So I tried to fix it in this PR.
Also I fixed validation on pathParams because it didn't work for me at all.
Also please make change in this line https://github.com/zaaack/koa-dec-router/blob/master/src/index.js#L76 uniqBy(routes, r => r.method + r.path) without it test won't work

@zaaack
Copy link
Owner

zaaack commented Jan 19, 2018

Thanks for your contribution! 🎉 I only used this plugin in an unfinished project and tested it in a very limit situation, you have made it better!

koa-joi-swagger@v1.1.1 is published, feel free to create new issues or PRs if you have other problems.

@esvit
Copy link
Author

esvit commented Jan 19, 2018

great, thank you 👍

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.

None yet

2 participants