-
Notifications
You must be signed in to change notification settings - Fork 144
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
Expose validator constraints to end-users using a new trait #238
Closed
Commits on Apr 14, 2023
-
* implemented validation trait for length * converted identation to spaces * changed the trait to not require HasLen * added macro for generating impls * implemented ValidateLength for some types * using trait validation instead of the function * added cfg for indexmap import * changed trait to require length * Revert "changed trait to require length" This reverts commit a77bdc9. * moved validation logic inside ValidateLength trait * added trait validation for required * added email trait validation * fixed trait validation for email * added range trait validation * fixed range trait * added url trait validation --------- Co-authored-by: Tilen Pintarič <tilen.pintaric@aviko.si>
Configuration menu - View commit details
-
Copy full SHA for 4830561 - Browse repository at this point
Copy the full SHA 4830561View commit details
Commits on Apr 23, 2023
-
Feature: Add
exclusive_min
andexclusive_max
torange
validation (Keats#246) * feat(range): add exclusive minimum and exclusive maximum for `range` validation * test(range): add tests for `exc_min` and `exc_max` range validation * docs: add docs for `exc_min` and `exc_max` for `range` validation * chore: rename `exc_min`, `exc_max` to `exclusive_min`, `exclusive_max` * chore(validation.rs): get rid of `collide` function
Configuration menu - View commit details
-
Copy full SHA for 6471bae - Browse repository at this point
Copy the full SHA 6471baeView commit details
Commits on May 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 61531d3 - Browse repository at this point
Copy the full SHA 61531d3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 897811a - Browse repository at this point
Copy the full SHA 897811aView commit details
Commits on May 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cbca88e - Browse repository at this point
Copy the full SHA cbca88eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 803b7b1 - Browse repository at this point
Copy the full SHA 803b7b1View commit details -
Make collection types wrap the constraints in a different constraint …
…kind This makes it possible for code consuming the constraints to know whether the type is used directly or if it is held in some kind of collection.
Configuration menu - View commit details
-
Copy full SHA for ecde4f4 - Browse repository at this point
Copy the full SHA ecde4f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92b144d - Browse repository at this point
Copy the full SHA 92b144dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.