Skip to content

Commit 92877e0

Browse files
committed
docs: adds considerations for why the target is readonly
Signed-off-by: Vincent Biret <[email protected]>
1 parent 89881fd commit 92877e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.OpenApi.Models.References;
1111
public abstract class BaseOpenApiReferenceHolder<T, V> : IOpenApiReferenceHolder<T, V> where T : class, IOpenApiReferenceable, V where V : IOpenApiSerializable
1212
{
1313
/// <summary>
14-
/// The resolved target object.
14+
/// The resolved target object. This should remain readonly, otherwise mutating the reference will have side effects.
1515
/// </summary>
1616
protected readonly T _target;
1717
/// <inheritdoc/>

0 commit comments

Comments
 (0)