Closed goblinfactory closed 3 years ago
Ah! Fixed... solution is to prefix the attribute with property. I never knew you could do this in C#... live and learn! maybe leave this issue open for a bit, so that I can create a PR some time to update documentation to show this? It's really useful to know.
fix like so ...
public record LoginRequest([Required][EmailAddress] string EmailAddress, [property:NotLogged][Required] string Password);
there are many qwerks with records and properties. unfortunately it is not responsibility of this project to document those
Given I am using C# records I want to decorate PI properties with [NotLogged] attribute So that the properties are not logged
Example
gives me a compile error, `Attribute NotLogged is not valid on this declaration type.