facebook-python-business-sdk
facebook-python-business-sdk copied to clipboard
Updated typechecker.py to handle <list<map<string, string>>> correctly
Fixed issue with not parsing <list<map correctly.
I first noticed this when getting products underneath a product catalog. One of the items in the request consisted of a <list<list<map<string, string>>> value_type. This is currently not handled when this is parsed in the existing code. In the existing code, sub_type_value tries to access an index of the subtypes list that does not exist. I noticed some similar code in the function get_typed_value which I've used in the fix.