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 #151 #152

Merged
merged 3 commits into from
Sep 30, 2019
Merged

Fixes #151 #152

merged 3 commits into from
Sep 30, 2019

Conversation

jdarling
Copy link
Contributor

@jdarling jdarling commented Apr 2, 2019

If you have a multi-segment path defined (/api/v1/proxy/{path*}) it breaks when it creates the validator due to it creating the param name as "path*" instead of "path". As multi-segment parameters can also have a repeat variable (path*2 as example) replacing the path variable name needs to take this into account.

If you have a multi-segment path defined (/api/v1/proxy/{path*}) it breaks when it creates the validator due to it creating the param name as "path*" instead of "path". As multi-segment parameters can also have a repeat variable (path*2 as example) replacing the path variable name needs to take this into account.
@tlivings
Copy link
Contributor

tlivings commented Apr 2, 2019

Can you add a test? Thanks.

@jdarling
Copy link
Contributor Author

jdarling commented Apr 2, 2019

Added a test to test-validators.js don't know if that is where you want it or not. Also didn't know if I should bump version number or whatever. Just lmk

Copy link
Contributor

@tlivings tlivings left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tlivings tlivings merged commit e11bb82 into krakenjs:master Sep 30, 2019
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