Open brrusino opened 1 day ago
Hi @brrusino thank you for opening this issue I am working on a refactor of sample related code: https://github.com/Azure/autorest.csharp/pull/5107 This is very likely to fix this issue - because the code in the stack trace is being refactored in above PR.
Could you also share where you saw this issue happens?
Seeing the following stack trace:
This seems to be when trying to process an example with object[] value when Record is the Proxy Resource's property model (legacy resource for our RP).
PR link to model definition in TypeSpec: https://github.com/Azure/azure-rest-api-specs/blob/792b94bd3d1e499882a4294fd345b2965684eed8/specification/chaos/Chaos.Management/Target.tsp#L20C1-L20C71
PR link to example property that seems to be causing failure: https://github.com/Azure/azure-rest-api-specs/blob/792b94bd3d1e499882a4294fd345b2965684eed8/specification/chaos/Chaos.Management/examples/2025-01-01/Targets_Get.json#L19
I would expect this model to be supported in the example, or otherwise the model definition for
Target
should be modified to another implementation that does support object[] as value.