Enforce serialize_empty for repeated fields (#417)

This commit is contained in:
sterliakov
2022-08-31 21:59:12 +04:00
committed by GitHub
parent 8fbf4476a8
commit bfc0fac754
5 changed files with 49 additions and 0 deletions

View File

@@ -806,6 +806,7 @@ class Message(ABC):
meta.proto_type,
item,
wraps=meta.wraps or "",
serialize_empty=True,
)
# if it's an empty message it still needs to be represented
# as an item in the repeated list