Open jiec-msft opened 3 months ago
thanks for opening the issue @jiec-msft . We know what's causing this issue, it's a known bug in LRO, in case the LRO finish immediately while the return is a polymorphic type. Polymorphic deserialization pops from the resulting JSON, and if the LRO is done twice, we deserialize twice, but the second time the discriminator is not here anymore so we're not returning the polymorphic child.
Since there's a customer ticket we're going to restart our discussions on how best to solve this issue
FYI: same issue as https://github.com/Azure/autorest.python/issues/2428
Fixed in https://github.com/Azure/autorest.python/pull/2628 and we will release a new version ASAP.
Fixed in Azure/autorest.python#2628 and we will release a new version ASAP.
@msyyc May I ask is the fix released?
Fixed in Azure/autorest.python#2628 and we will release a new version ASAP.
@msyyc May I ask is the fix released?
Hi, it has been released, https://pypi.org/project/azure-mgmt-appplatform/9.1.0/
Describe the bug Deserialization issue for the polymorphism support with python SDK generated in swagger PR.
To Reproduce Steps to reproduce the behavior:
Expected behavior Expect output by CLI like below in the right:![image](https://github.com/Azure/azure-sdk-for-python/assets/22190245/5e498e20-23c0-4014-8a53-dda9ee0b3e20)
Screenshots If applicable, add screenshots to help explain your problem.
Additional context