Skip to content

Commit b6b9f74

Browse files
committed
chore: make method internal; update public API
1 parent 0f4a837 commit b6b9f74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static string[] ToIdentifier(this JsonSchemaType schemaType)
5454
/// </summary>
5555
/// <param name="schemaType"></param>
5656
/// <returns></returns>
57-
public static string FirstIdentifier(this JsonSchemaType schemaType)
57+
internal static string FirstIdentifier(this JsonSchemaType schemaType)
5858
{
5959
var identifier = schemaType.ToIdentifier();
6060
return identifier[0];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ namespace Microsoft.OpenApi.Extensions
193193
public static string[] ToIdentifier(this Microsoft.OpenApi.Models.JsonSchemaType schemaType) { }
194194
public static string[]? ToIdentifier(this Microsoft.OpenApi.Models.JsonSchemaType? schemaType) { }
195195
public static Microsoft.OpenApi.Models.JsonSchemaType ToJsonSchemaType(this string identifier) { }
196-
public static Microsoft.OpenApi.Models.JsonSchemaType ToJsonSchemaType(this string[] identifier) { }
196+
public static Microsoft.OpenApi.Models.JsonSchemaType? ToJsonSchemaType(this string[] identifier) { }
197197
}
198198
}
199199
namespace Microsoft.OpenApi.Interfaces

0 commit comments

Comments
 (0)