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

fix: match route with empty path parameters for api with child resource #178

Merged
merged 6 commits into from Feb 28, 2022

Conversation

nicolaemarin
Copy link
Contributor

Cover validation in cases when path parameter is empty.

Check only if the key exists in path attributes when matching the route without exactMatch for cases when path parameter is empty
Add test for case when path parameter is empty string
remove express test case
define swagger path for child resource
add tests for api with child resource and empty path parameter
kobik
kobik previously approved these changes Feb 28, 2022
Copy link
Collaborator

@kobik kobik left a comment

Choose a reason for hiding this comment

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

Thanks @marinnicolae!

@kobik kobik changed the title Match route with empty path parameters for api with child resource fix: match route with empty path parameters for api with child resource Feb 28, 2022
@kobik kobik merged commit f3ae591 into PayU:master Feb 28, 2022
@github-actions
Copy link

🎉 This PR is included in version 3.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants