Closed jon-armen closed 3 months ago
Thanks for the report, I will work on fixing this. In the meantime, you can work around this by switching the order of attributes. I.e., this code:
/// <inheritdoc/>
[Range(1, 1000)]
[Required]
public int? PageSize { get; init; }
Is correctly transformed to:
/// <inheritdoc/>
[Range(1, 1000)]
[Required(ErrorMessage = "REQUIRED")]
public int? PageSize { get; init; }
This bug has been fixed in Metalama 2024.0.10.
Introducing an attribute may cause the xml comment to shift locations. This triggers
warning CS1591: Missing XML comment for publicly visible type or member 'MyClass.PageSize'
Source
Transformed
Expected
Aspect