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 cbb1407ca8b3c0be3b3d2889ee5da450ee807e0a
3 changes: 1 addition & 2 deletions src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ private static IEnumerable<string> ToIdentifiersInternal(this JsonSchemaType sch
/// <returns></returns>
internal static string ToFirstIdentifier(this JsonSchemaType schemaType)
{
var identifier = schemaType.ToIdentifiers();
return identifier[0];
return schemaType.ToIdentifiersInternal().First();
}

/// <summary>
Expand Down