diff --git a/src/MapTo/Sources/MapFromAttributeSource.cs b/src/MapTo/Sources/MapFromAttributeSource.cs index fc3f52b..6594832 100644 --- a/src/MapTo/Sources/MapFromAttributeSource.cs +++ b/src/MapTo/Sources/MapFromAttributeSource.cs @@ -26,7 +26,7 @@ namespace MapTo.Sources } builder - .WriteLine("[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]") + .WriteLine("[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]") .WriteLine($"public sealed class {AttributeName}Attribute : Attribute") .WriteOpeningBracket();