Visitar URL original
fix: refactor ToIdentifier() to normalize flaggable enums by MaggieKimani1 · Pull Request #2156 · microsoft/OpenAPI.NET · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
MaggieKimani1 and baywet authored Feb 20, 2025
commit fe19bfb729906740e7b18189227dcc9482f4df69
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static string ToSingleIdentifier(this JsonSchemaType schemaType)
{
throw new OpenApiException($"Schema type {schemaType} must have exactly one identifier.");
}
return schemaType.ToFirstIdentifier();
return schemaType.ToIdentifiersInternal().Single();
}

#nullable restore
Expand Down