File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/Microsoft.OpenApi/Extensions Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments