EnkaNetwork.py
EnkaNetwork.py copied to clipboard
Unexpected Replacement of `icon` Field Type to `IconAsset` After Executing `EnkaNetworkResponse.parse_obj(data)`
When executing the function EnkaNetworkResponse.parse_obj(data)
, an unintended behavior was observed where the icon
field type in the original data
is being replaced with IconAsset
. This issue is unexpected and should not occur.
code:
result = EnkaNetworkResponse.parse_obj(data)
Before:
After:
As for why I'm reporting this issue, it's because I still need to use the original Data for other tasks. I hope that the original data should not be damaged during processing.