-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update built-in fields to new validate hook syntax #9166
Merged
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9e7b1d0
update built-in fields to new validate hook syntax
acburdine b285e25
refactor resolve-hooks code
dcousens d9cfc5d
dedupe makeValidationHook for mode and validate hook
dcousens 556b941
fix select isNotNull when only validation.isRequired is set
dcousens ed77734
less meta at the front of error messages
dcousens 22e87fa
tidy up
dcousens 8dc51b9
revert password to db.isNullable: false default
dcousens 393dc93
unify validation and fix tests
dcousens f29f4ba
unify float to same as integer, bigInt et al
dcousens eadd3b0
add bigInt error when defaultValue and isRequired is set
dcousens 64069ff
add bigInt changeset
dcousens cbc2ece
fix example-test.ts
dcousens d1dba42
revert builtin.beforeOperation to happen first
dcousens a3c80b9
add multiselect nullable changeset + add tests
dcousens c2420fc
fix tests for non-nullable default fields
dcousens c45b153
fix bigInt changeset
dcousens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
dedupe makeValidationHook for mode and validate hook
- Loading branch information
commit d9cfc5d57d8fdd0709c88c87b03dceba6b155a62
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
I used this opportunity to unify each of the numerical fields to share nearly the same code for
min
andmax
validation.