public DocumentAttribute Mutate(string onInvalid, string description) { return(new DocumentAttribute(Name, AllowedRegExps.ToList(), AllowedValues.ToList(), !string.IsNullOrEmpty(onInvalid) ? onInvalid : OnInvalid, !string.IsNullOrEmpty(description) ? description : Description)); }