forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Union type with dataclass ambiguous error and support superset co…
…mparison (flyteorg#5858) * feat: fix Union type with dataclass ambiguous error Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: direct json comparison for superset Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: go.mod missing entry for error Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: update go module and sum Signed-off-by: mao3267 <chenvincent610@gmail.com> * refactor: gci format Signed-off-by: mao3267 <chenvincent610@gmail.com> * test: add dataset casting tests for same (one/two levels) and superset (one level) dataclass Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: support Pydantic BaseModel comparison Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: handle nested pydantic basemodel Signed-off-by: mao3267 <chenvincent610@gmail.com> * Reviews from Eduardo Signed-off-by: Future-Outlier <eric901201@gmail.com> * fix: support strict subset match Signed-off-by: mao3267 <chenvincent610@gmail.com> * test: update strict subset match test Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: missing go mod entry Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: missing go mod entry Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: go mod entry Signed-off-by: mao3267 <chenvincent610@gmail.com> * make go-tidy Signed-off-by: Future-Outlier <eric901201@gmail.com> * comments Signed-off-by: Future-Outlier <eric901201@gmail.com> * fix: strict subset match with draft 2020-12 mashumaro Signed-off-by: mao3267 <chenvincent610@gmail.com> * refactor: make go-tidy Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: support strict subset match with ambiguity Signed-off-by: mao3267 <chenvincent610@gmail.com> * fix: change test name and fix err Signed-off-by: mao3267 <chenvincent610@gmail.com> * Add comments Signed-off-by: Future-Outlier <eric901201@gmail.com> * nit Signed-off-by: Future-Outlier <eric901201@gmail.com> * add flytectl go-tidy in makefile Signed-off-by: Future-Outlier <eric901201@gmail.com> * nit Signed-off-by: Future-Outlier <eric901201@gmail.com> * fix: add comment for error checking Signed-off-by: mao3267 <chenvincent610@gmail.com> * test: basemodel castable test, two level dataclass and ParentToChild failure Signed-off-by: mao3267 <chenvincent610@gmail.com> --------- Signed-off-by: mao3267 <chenvincent610@gmail.com> Signed-off-by: Future-Outlier <eric901201@gmail.com> Co-authored-by: Future-Outlier <eric901201@gmail.com>
- Loading branch information
1 parent
45935e4
commit 47edd99
Showing
12 changed files
with
993 additions
and
17 deletions.
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
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.