ServiceStack.Swift Deserialization issue when a property uses a Swift reserved keyword

Hello,

I’m having a small serialization/deserialization issue with a DTO that has a property that uses a reserved keyword (operator). The generated class and propertyMap correctly escape the property name but the parseJson method does not return the escaped name therefore a ‘match’ cannot be made and the property is not set.

    [DataContract]
    [Route("/enum", Verbs = "PUT")]
    public class EnumRequest : IReturn<EnumResponse>, IPut
    {
        [DataMember]
        public ScopeType Operator{ get; set; }
    }

    public class EnumResponse
    {
        public ScopeType Operator { get; set; }
    }

    [DataContract]
    public enum ScopeType
    {
        [EnumMember]
        Global = 1,
        [EnumMember]
        Sale = 2,
    }

Should be fixed with this commit.

Which is available from v4.0.47 that’s now available on MyGet.