Utility Functions¶
- arya_api_framework.utils.flatten_obj(obj)¶
Flattens a given object into a
dict.This is mainly used for arguments where a
dictor aBaseModelcan be accepted as parameters.
- arya_api_framework.utils.merge_dicts(base_dict, update_dict)¶
Merges the base dict with the update dict, overriding any of the base dict’s values with the updated values from the update dict.