Open opcodewriter opened 3 years ago
Refit v6.0.94 .NET Standard 2.0 (in a UWP app)
Using AliasAs doesn't work for array (the property value is null):
[**AliasAs**("someIds")] public int[] LocationIds { get; set; }
but works with JsonProperty:
[**JsonProperty**("someIds")] public int[] LocationIds { get; set; }
Hope it helps someone. I won't disclose the no. of hours it took me to figure it out because it's embarrassing 🤠😳.
AliasAs also doesn't work on normal response properties. But System.Text.Json.Serialization's JsonPropertyName works.
Description
Refit v6.0.94 .NET Standard 2.0 (in a UWP app)
Using AliasAs doesn't work for array (the property value is null):
but works with JsonProperty:
Hope it helps someone. I won't disclose the no. of hours it took me to figure it out because it's embarrassing 🤠😳.