Skip to content

Commit 812fbc0

Browse files
fix(python): exclude unset API values on model dump (generated)
algolia/api-clients-automation#3777 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 50939c2 commit 812fbc0

File tree

364 files changed

+364
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+364
-0
lines changed

algoliasearch/abtesting/models/ab_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def to_dict(self) -> Dict[str, Any]:
9191
by_alias=True,
9292
exclude={},
9393
exclude_none=True,
94+
exclude_unset=True,
9495
)
9596
_items = []
9697
if self.variants:

algoliasearch/abtesting/models/ab_test_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]:
6262
by_alias=True,
6363
exclude={},
6464
exclude_none=True,
65+
exclude_unset=True,
6566
)
6667
if self.outliers:
6768
_dict["outliers"] = self.outliers.to_dict()

algoliasearch/abtesting/models/ab_test_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
6060
by_alias=True,
6161
exclude={},
6262
exclude_none=True,
63+
exclude_unset=True,
6364
)
6465
return _dict
6566

algoliasearch/abtesting/models/ab_tests_variant.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
6060
by_alias=True,
6161
exclude={},
6262
exclude_none=True,
63+
exclude_unset=True,
6364
)
6465
return _dict
6566

algoliasearch/abtesting/models/ab_tests_variant_search_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]:
6161
by_alias=True,
6262
exclude={},
6363
exclude_none=True,
64+
exclude_unset=True,
6465
)
6566
return _dict
6667

algoliasearch/abtesting/models/add_ab_tests_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]:
6161
by_alias=True,
6262
exclude={},
6363
exclude_none=True,
64+
exclude_unset=True,
6465
)
6566
_items = []
6667
if self.variants:

algoliasearch/abtesting/models/currency.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]:
6262
by_alias=True,
6363
exclude={},
6464
exclude_none=True,
65+
exclude_unset=True,
6566
)
6667
return _dict
6768

algoliasearch/abtesting/models/empty_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]:
5454
by_alias=True,
5555
exclude={},
5656
exclude_none=True,
57+
exclude_unset=True,
5758
)
5859
return _dict
5960

algoliasearch/abtesting/models/empty_search_filter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
6060
by_alias=True,
6161
exclude={},
6262
exclude_none=True,
63+
exclude_unset=True,
6364
)
6465
return _dict
6566

algoliasearch/abtesting/models/error_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]:
5656
"additional_properties",
5757
},
5858
exclude_none=True,
59+
exclude_unset=True,
5960
)
6061
# puts key-value pairs in additional_properties in the top level
6162
if self.additional_properties is not None:

0 commit comments

Comments
 (0)