Skip to content

Commit 844b9b1

Browse files
committed
chore: removes redundant check
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent ee43027 commit 844b9b1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ internal static string ToFirstIdentifier(this JsonSchemaType schemaType)
7272
/// <returns></returns>
7373
public static string ToSingleIdentifier(this JsonSchemaType schemaType)
7474
{
75-
if (schemaType.ToIdentifiers().Length != 1)
76-
{
77-
throw new OpenApiException($"Schema type {schemaType} must have exactly one identifier.");
78-
}
7975
return schemaType.ToIdentifiersInternal().Single();
8076
}
8177

0 commit comments

Comments
 (0)