Skip to content

Commit cbb1407

Browse files
Update src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent fe50da3 commit cbb1407

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ private static IEnumerable<string> ToIdentifiersInternal(this JsonSchemaType sch
5959
/// <returns></returns>
6060
internal static string ToFirstIdentifier(this JsonSchemaType schemaType)
6161
{
62-
var identifier = schemaType.ToIdentifiers();
63-
return identifier[0];
62+
return schemaType.ToIdentifiersInternal().First();
6463
}
6564

6665
/// <summary>

0 commit comments

Comments
 (0)