Skip to content
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

Create generic SerializeAsOptional type for Pydantic #564

Merged
merged 31 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
813854a
Create annotated list type that serializes to `None` if empty
disrupted Dec 12, 2024
6e7448f
Expand test
disrupted Dec 12, 2024
903434e
Make it more generic
disrupted Dec 12, 2024
111948e
Improve schema
disrupted Dec 12, 2024
372c6be
Move to Pydantic utils
disrupted Dec 12, 2024
c5c2876
Refactor other optional collection types
disrupted Dec 12, 2024
f716bcb
Rename schema class
disrupted Dec 12, 2024
306019c
Apply to StreamsBootstrapValues
disrupted Dec 16, 2024
e74bcf4
Apply to StreamsBootstrapValues
disrupted Dec 16, 2024
7503e4b
Fix
disrupted Dec 16, 2024
ebf19a2
Skip serialization step for cleaner instantiation
disrupted Dec 16, 2024
2091375
Add failing test
disrupted Dec 16, 2024
7a1f4b0
Try refactor to include serializer function
disrupted Dec 16, 2024
5917f8c
Cosmetic
disrupted Dec 16, 2024
32de61b
Implement and explain workaround in test
disrupted Dec 16, 2024
bf2f6b6
Apply workaround
disrupted Dec 16, 2024
3ad6c9c
Link to upstream issue with potential solution for `exclude_none`
disrupted Dec 16, 2024
0c3ccb8
Validate `None` to default
disrupted Dec 16, 2024
e271eb2
Expand test
disrupted Dec 16, 2024
afd6ac2
Serialize StreamsBootstrapValues correctly
disrupted Dec 16, 2024
549697c
Add test for exclude_by_value
disrupted Dec 16, 2024
e55dfc9
Inherit from SerializeAsOptionalModel
disrupted Dec 16, 2024
0ba91ca
Extend snapshot test with affinity
disrupted Dec 16, 2024
ec8841f
Update snapshot
disrupted Dec 16, 2024
8bfddd7
Merge branch 'main' into refactor/pydantic-optional-list
disrupted Dec 17, 2024
1043311
Merge remote-tracking branch 'origin/main' into refactor/pydantic-opt…
disrupted Dec 17, 2024
92c9698
Apply SerializeAsOptional to streams-bootstrap v2
disrupted Dec 17, 2024
3020168
Fix allow optional resources requests and limits (#570)
disrupted Dec 17, 2024
b14738f
Bump version 8.3.1 → 8.3.2
bakdata-bot Dec 17, 2024
d37cdfb
Merge branch 'main' into refactor/pydantic-optional-list
disrupted Dec 17, 2024
286be69
Fix import
disrupted Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading