We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee43027 commit 844b9b1Copy full SHA for 844b9b1
src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
@@ -72,10 +72,6 @@ internal static string ToFirstIdentifier(this JsonSchemaType schemaType)
72
/// <returns></returns>
73
public static string ToSingleIdentifier(this JsonSchemaType schemaType)
74
{
75
- if (schemaType.ToIdentifiers().Length != 1)
76
- {
77
- throw new OpenApiException($"Schema type {schemaType} must have exactly one identifier.");
78
- }
79
return schemaType.ToIdentifiersInternal().Single();
80
}
81
0 commit comments