-
Notifications
You must be signed in to change notification settings - Fork 312
Improvements in union matching logic during validation #1332
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
9117c6b
first pass at union match improvement
sydney-runkle fcc84ec
don't need to add explicit numbers
sydney-runkle 0255211
figuring out fields set
sydney-runkle ceb5e1b
behavior for checking model fields set
sydney-runkle 1a6b00c
working on my rust best practices
sydney-runkle 1718e8b
using method on Validator trait to streamline things
sydney-runkle 500a812
comment udpate
sydney-runkle 6645ac2
new round of tests
sydney-runkle d479928
get all tests passing
sydney-runkle e16103a
use Union not pipe in tests
sydney-runkle 9208282
abandon num_fields for a state based approach
sydney-runkle 69f6ec0
get typed dicts working, add tests for other model like cases
sydney-runkle 18b70d4
dataclass support + more efficient exact return
sydney-runkle e4f1e6b
all dataclass tests passing :)
sydney-runkle 00ddca2
bubble up fields set in nested models
sydney-runkle fc21636
add nested counting for dataclasses, typed dicts
sydney-runkle 72aa7bd
corresponding tests
sydney-runkle d2ef400
updating fields set at the end)
sydney-runkle 1585e96
comments and best practice with state updates
sydney-runkle d3f88b7
consistency w var names
sydney-runkle 38f911f
abbreviated syntax
sydney-runkle c3b43e9
adding a bubble up test + doing some minor test refactoring
sydney-runkle 31a439a
3.8 fixes
sydney-runkle ed920ad
oops, another list
sydney-runkle 645f917
ugh, last 3.8 fix hopefully
sydney-runkle ed8ddb9
name change success -> best_match
sydney-runkle 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
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.