pulumi / pulumi-dotnet

.NET support for Pulumi
Apache License 2.0
27 stars 25 forks source link

Support input lists in JsonSerializer.SerializeAsync #368

Closed mikhailshilkov closed 3 weeks ago

mikhailshilkov commented 3 weeks ago

Our OutputJsonConverter fails to account for InputList<T>, so any input lists nested in a serialized data structure causes serialization to fail. Reported by a customer trying to serialize Azure Native dashboard data types.

The fix expands OutputJsonConverter to support InputList<T>. It piggybacks on the existing InputJsonConverterInner implementation by passing an ImmurableArray<T> generic argument to it.

Fixes https://github.com/pulumi/pulumi-dotnet/issues/367