Skip to content

Commit

Permalink
Fix config type inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
gitfool committed Jul 22, 2024
1 parent fa6c9ca commit d945274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/ConfigTypeInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ public ConfigTypeInspector(ITypeInspector inner)
Inner = inner;
}

public override string GetEnumName(Type enumType, string name) => Inner.GetEnumName(enumType, name);

public override string GetEnumValue(object enumValue) => Inner.GetEnumValue(enumValue);

public override IEnumerable<IPropertyDescriptor> GetProperties(Type type, object? container) =>
Inner.GetProperties(type, container).Where(property => !Regex.IsMatch(property.Name, @"Password|Secret|Token")); // ignore secrets

Expand Down

0 comments on commit d945274

Please sign in to comment.