diff --git a/kiota_serialization_json/json_parse_node.py b/kiota_serialization_json/json_parse_node.py index deb4994..ac3252e 100644 --- a/kiota_serialization_json/json_parse_node.py +++ b/kiota_serialization_json/json_parse_node.py @@ -293,7 +293,7 @@ def _assign_field_values(self, item: U) -> None: deserialize but the model doesn't support additional data" ) - def is_four_digit_number(self, value: str) -> bool: + def __is_four_digit_number(self, value: str) -> bool: pattern = r'^\d{4}$' return bool(re.match(pattern, value)) @@ -306,7 +306,7 @@ def try_get_anything(self, value: Any) -> Any: return dict(map(lambda x: (x[0], self.try_get_anything(x[1])), value.items())) if isinstance(value, str): try: - if self.is_four_digit_number(value): + if self.__is_four_digit_number(value): return value datetime_obj = pendulum.parse(value)