Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Fix Enum serialization Python #265

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kiota_serialization_json/json_parse_node.py
Original file line number Diff line number Diff line change
@@ -198,7 +198,7 @@ def get_enum_value(self, enum_class: K) -> Optional[K]:
try:
return enum_class[camel_case_key] # type: ignore
except KeyError:
raise Exception(f'Invalid key: {camel_case_key} for enum {enum_class}.')
return None
shemogumbe marked this conversation as resolved.
Show resolved Hide resolved

def get_object_value(self, factory: ParsableFactory) -> U:
"""Gets the model object value of the node