Skip to content

Commit

Permalink
fix: remove interface from attribute targets on the mapper attribute (#…
Browse files Browse the repository at this point in the history
…686)

Mapperly does not work with interfaces since v2.0.0
  • Loading branch information
latonz authored Aug 28, 2023
1 parent f3d78b4 commit b7e6e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Riok.Mapperly.Abstractions/MapperAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Riok.Mapperly.Abstractions;

/// <summary>
/// Marks an abstract class or an interface as a mapper.
/// Marks a partial class as a mapper.
/// </summary>
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class)]
[AttributeUsage(AttributeTargets.Class)]
public sealed class MapperAttribute : Attribute
{
/// <summary>
Expand Down

0 comments on commit b7e6e20

Please sign in to comment.