Skip to content

Commit 50c8e34

Browse files
committed
fix: visibility of extension methods
1 parent a0d1845 commit 50c8e34

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiReferencableExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ namespace Microsoft.OpenApi
1010
/// <summary>
1111
/// Extension methods for resolving references on <see cref="IOpenApiReferenceable"/> elements.
1212
/// </summary>
13-
public static class OpenApiReferenceableExtensions
13+
internal static class OpenApiReferenceableExtensions
1414
{
1515
/// <summary>
1616
/// Resolves a JSON Pointer with respect to an element, returning the referenced element.
1717
/// </summary>
18-
/// <param name="element">The referencable Open API element on which to apply the JSON pointer</param>
18+
/// <param name="element">The referenceable Open API element on which to apply the JSON pointer</param>
1919
/// <param name="pointer">a JSON Pointer [RFC 6901](https://tools.ietf.org/html/rfc6901).</param>
2020
/// <returns>The element pointed to by the JSON pointer.</returns>
2121
public static IOpenApiReferenceable ResolveReference(this IOpenApiReferenceable element, JsonPointer pointer)

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,6 @@ namespace Microsoft.OpenApi
10661066
protected override void SerializeAdditionalV31Properties(Microsoft.OpenApi.IOpenApiWriter writer) { }
10671067
protected override void SetAdditional31MetadataFromMapNode(System.Text.Json.Nodes.JsonObject jsonObject) { }
10681068
}
1069-
public static class OpenApiReferenceableExtensions
1070-
{
1071-
public static Microsoft.OpenApi.IOpenApiReferenceable ResolveReference(this Microsoft.OpenApi.IOpenApiReferenceable element, Microsoft.OpenApi.JsonPointer pointer) { }
1072-
}
10731069
public class OpenApiRequestBody : Microsoft.OpenApi.IOpenApiDescribedElement, Microsoft.OpenApi.IOpenApiElement, Microsoft.OpenApi.IOpenApiExtensible, Microsoft.OpenApi.IOpenApiReadOnlyExtensible, Microsoft.OpenApi.IOpenApiReferenceable, Microsoft.OpenApi.IOpenApiRequestBody, Microsoft.OpenApi.IOpenApiSerializable, Microsoft.OpenApi.IShallowCopyable<Microsoft.OpenApi.IOpenApiRequestBody>
10741070
{
10751071
public OpenApiRequestBody() { }

0 commit comments

Comments
 (0)