Visitar URL original
fix: refactor ToIdentifier() to normalize flaggable enums by MaggieKimani1 · Pull Request #2156 · microsoft/OpenAPI.NET · GitHub
Skip to content
Merged
Show file tree
Hide file tree
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
chore: make method internal; update public API
  • Loading branch information
MaggieKimani1 committed Feb 19, 2025
commit b6b9f74d245eba6509b0ec73186e40960eab1718
2 changes: 1 addition & 1 deletion src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static string[] ToIdentifier(this JsonSchemaType schemaType)
/// </summary>
/// <param name="schemaType"></param>
/// <returns></returns>
public static string FirstIdentifier(this JsonSchemaType schemaType)
internal static string FirstIdentifier(this JsonSchemaType schemaType)
Comment thread
MaggieKimani1 marked this conversation as resolved.
Resolved
{
var identifier = schemaType.ToIdentifier();
return identifier[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace Microsoft.OpenApi.Extensions
public static string[] ToIdentifier(this Microsoft.OpenApi.Models.JsonSchemaType schemaType) { }
public static string[]? ToIdentifier(this Microsoft.OpenApi.Models.JsonSchemaType? schemaType) { }
public static Microsoft.OpenApi.Models.JsonSchemaType ToJsonSchemaType(this string identifier) { }
public static Microsoft.OpenApi.Models.JsonSchemaType ToJsonSchemaType(this string[] identifier) { }
public static Microsoft.OpenApi.Models.JsonSchemaType? ToJsonSchemaType(this string[] identifier) { }
}
}
namespace Microsoft.OpenApi.Interfaces
Expand Down