Skip to content

Commit 5d17929

Browse files
committed
undo breaking change for now
1 parent 5049281 commit 5d17929

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/JsonApiDotNetCore/Models/AttrAttribute.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ public AttrAttribute(string publicName = null, bool isImmutable = false, bool is
3434
IsSortable = isSortable;
3535
}
3636

37-
internal AttrAttribute(string publicName, string internalName, bool isImmutable = false)
37+
/// <summary>
38+
/// Do not use this overload in your applications.
39+
/// Provides a method for instantiating instances of `AttrAttribute` and specifying
40+
/// the internal property name.
41+
/// The primary intent for this was to enable certain types of unit tests to be possible.
42+
/// This overload will be deprecated and removed in future releases and an alternative
43+
/// for unit tests will be provided.
44+
/// </summary>
45+
public AttrAttribute(string publicName, string internalName, bool isImmutable = false)
3846
{
3947
PublicAttributeName = publicName;
4048
InternalAttributeName = internalName;

0 commit comments

Comments
 (0)