-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Validate Modifier for Predicates #42
Conversation
CC: @AdritRao, this might be helpful for StanfordSpezi/SpeziOnboarding#54 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #42 +/- ##
==========================================
+ Coverage 80.37% 81.12% +0.75%
==========================================
Files 44 44
Lines 1304 1308 +4
==========================================
+ Hits 1048 1061 +13
+ Misses 256 247 -9
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate Modifier for Predicates
♻️ Current situation & Problem
SpeziValidation currently provides the
validate(input:rules:)
modifier to validateString
-based inputs using SpeziValidation. This PR extends this functionality toBool
expressions. The newvalidate(_:message:)
modifier can be used to validate all sorts of boolean conditions and supply a validation failure reason with it.⚙️ Release Notes
validate(_:message:)
modifier to validate bool expressions.📚 Documentation
Documentation was updated to highlight the new modifier.
✅ Testing
TBA
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: