Consider a model that has the @encode(ArrayEncoding.commaDelimited) decorator on a property:
model SuggestOptions {
@query("$orderby")
@encode(ArrayEncoding.commaDelimited)
orderBy?: string[];
}
And is then customized:
[CodeGenMember("OrderBy")]
public IList<string> OrderBy { get; internal set; } = new List<string>();
The generated serialization code should still handle the encoding from the original wire info. It seems this is being lost resulting in the property not using the encoding metadata at serialization.
Consider a model that has the
@encode(ArrayEncoding.commaDelimited)decorator on a property:And is then customized:
The generated serialization code should still handle the encoding from the original wire info. It seems this is being lost resulting in the property not using the encoding metadata at serialization.