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

String and number path param validation #58

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

emilien-puget
Copy link
Contributor

this PR depends on #55 for the validateSimpleParam function

it should fix #43

@codecov-commenter
Copy link

codecov-commenter commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.95%. Comparing base (13c8231) to head (56c3b8b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
- Coverage   99.14%   98.95%   -0.20%     
==========================================
  Files          19       19              
  Lines        1174     1151      -23     
==========================================
- Hits         1164     1139      -25     
- Misses         10       12       +2     
Flag Coverage Δ
unittests 98.95% <100.00%> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@emilien-puget
Copy link
Contributor Author

I'll add the test to cover that case

@emilien-puget
Copy link
Contributor Author

@daveshanley i pushed the proposed changes, with those changes we got more precise errors when a bad path parameter is given during a validation context

@daveshanley
Copy link
Member

Would you be able to rebase?

@emilien-puget
Copy link
Contributor Author

Would you be able to rebase?

Of course, I'll do that

@emilien-puget emilien-puget force-pushed the path_param_validation branch 3 times, most recently from 4f4a66e to 56c3b8b Compare March 6, 2024 22:04
@emilien-puget
Copy link
Contributor Author

@daveshanley rebased and squashed

@daveshanley daveshanley merged commit 3397867 into pb33f:main Mar 7, 2024
1 check passed
@emilien-puget emilien-puget deleted the path_param_validation branch March 9, 2024 13:21
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.

Validating Path Parameters with Regex
3 participants