Skip to content

Commit 5a01836

Browse files
committed
Fix build, address feedback, and remove Readers from trim tests
1 parent 7f7c54a commit 5a01836

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.OpenApi.Any
2424
public OpenApiAnyCloneHelper() { }
2525
[System.Obsolete("Use native AoT-friendly generic overload of CloneFromCopyConstructor instead.")]
2626
public static Microsoft.OpenApi.Any.IOpenApiAny CloneFromCopyConstructor(Microsoft.OpenApi.Any.IOpenApiAny obj) { }
27-
public static Microsoft.OpenApi.Any.IOpenApiAny CloneFromCopyConstructor<T>(T obj)
27+
public static T CloneFromCopyConstructor<T>(T obj)
2828
where T : Microsoft.OpenApi.Any.IOpenApiAny { }
2929
}
3030
public class OpenApiArray : System.Collections.Generic.List<Microsoft.OpenApi.Any.IOpenApiAny>, Microsoft.OpenApi.Any.IOpenApiAny, Microsoft.OpenApi.Interfaces.IOpenApiElement, Microsoft.OpenApi.Interfaces.IOpenApiExtension
@@ -249,6 +249,7 @@ namespace Microsoft.OpenApi.Extensions
249249
{
250250
public static class EnumExtensions
251251
{
252+
[System.Obsolete("GetAttributeOfType<T> is deprecated and will be removed in a future release.")]
252253
public static T GetAttributeOfType<T>(this System.Enum enumValue)
253254
where T : System.Attribute { }
254255
public static string GetDisplayName(this Microsoft.OpenApi.Models.ParameterLocation parameterLocation) { }

0 commit comments

Comments
 (0)