facebook-python-business-sdk icon indicating copy to clipboard operation
facebook-python-business-sdk copied to clipboard

Updated typechecker.py to handle <list<map<string, string>>> correctly

Open joshuamc98 opened this issue 6 months ago • 2 comments

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.

joshuamc98 avatar Dec 06 '23 18:12 joshuamc98