Skip to content

Commit ee43027

Browse files
committed
chore: clean up
1 parent fe19bfb commit ee43027

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Microsoft.OpenApi/Extensions/OpenApiTypeMapper.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,18 @@ public static string[] ToIdentifiers(this JsonSchemaType schemaType)
3838
{
3939
return schemaType.ToIdentifiersInternal().ToArray();
4040
}
41-
private static readonly Dictionary<JsonSchemaType, string> allSchemaTypes = [
42-
{ JsonSchemaType.Boolean, "boolean"},
41+
42+
private static readonly Dictionary<JsonSchemaType, string> allSchemaTypes = new()
43+
{
44+
{ JsonSchemaType.Boolean, "boolean" },
4345
{ JsonSchemaType.Integer, "integer" },
4446
{ JsonSchemaType.Number, "number" },
4547
{ JsonSchemaType.String, "string" },
4648
{ JsonSchemaType.Object, "object" },
4749
{ JsonSchemaType.Array, "array" },
48-
{ JsonSchemaType.Null, "null" },
49-
];
50+
{ JsonSchemaType.Null, "null" }
51+
};
52+
5053
private static IEnumerable<string> ToIdentifiersInternal(this JsonSchemaType schemaType)
5154
{
5255
return allSchemaTypes.Where(kvp => schemaType.HasFlag(kvp.Key)).Select(static kvp => kvp.Value);

0 commit comments

Comments
 (0)