I'm working with an external API that returns a bunch of products. These products sometimes have description and sometimes they don't. Unfortunately the API owners decided to set None as value when there is no value set for the description. I'm trying to map the values to my own model but I'm getting NoneType cannot be deserialized into str error. I don't know if this is intended behavior or not.
if I test with the following I get unable to deserialize
description: str = ""
If i test with the following the field is not mapped
I'm working with an external API that returns a bunch of products. These products sometimes have description and sometimes they don't. Unfortunately the API owners decided to set None as value when there is no value set for the description. I'm trying to map the values to my own model but I'm getting NoneType cannot be deserialized into str error. I don't know if this is intended behavior or not.
if I test with the following I get unable to deserialize
If i test with the following the field is not mapped
Is this intended behavior or it's a bug?