Skip to content

Commit fe19bfb

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static string ToSingleIdentifier(this JsonSchemaType schemaType)
7373
{
7474
throw new OpenApiException($"Schema type {schemaType} must have exactly one identifier.");
7575
}
76-
return schemaType.ToFirstIdentifier();
76+
return schemaType.ToIdentifiersInternal().Single();
7777
}
7878

7979
#nullable restore

0 commit comments

Comments
 (0)