From 765da45fd79d64a28dab575928429962ed7917f6 Mon Sep 17 00:00:00 2001 From: rkodev <43806892+rkodev@users.noreply.github.com> Date: Mon, 24 Mar 2025 18:04:59 +0300 Subject: [PATCH] Adds comment --- .../json/kiota_serialization_json/json_parse_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/serialization/json/kiota_serialization_json/json_parse_node.py b/packages/serialization/json/kiota_serialization_json/json_parse_node.py index b6682fb..4b2d548 100644 --- a/packages/serialization/json/kiota_serialization_json/json_parse_node.py +++ b/packages/serialization/json/kiota_serialization_json/json_parse_node.py @@ -233,6 +233,8 @@ def get_bytes_value(self) -> Optional[bytes]: Returns: bytearray: The bytearray value from the nodes """ + # if the node is a string, we need to decode it + # This ensures that the string is properly converted to bytes if isinstance(self._json_node, str): base64_string = self._json_node else: