Skip to content

Commit 100e3c9

Browse files
fix: Object of type MergeQuerySourceQuery is not JSON serializable (#1538)
fix for #1536
1 parent 45169fa commit 100e3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/looker_sdk/rtl/serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def deserialize(
7878
def serialize(*, api_model: TModelOrSequence, converter: cattr.Converter) -> bytes:
7979
"""Translate api_model into formdata encoded json bytes"""
8080
data = converter.unstructure(api_model) # type: ignore
81-
return json.dumps(data).encode("utf-8") # type: ignore
81+
return json.dumps(data,default=lambda o: o.__dict__).encode("utf-8") # type: ignore
8282

8383

8484
def forward_ref_structure_hook(context, converter, data, forward_ref):

0 commit comments

Comments
 (0)