We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9989cf1 commit 16c6251Copy full SHA for 16c6251
src/Microsoft.OpenApi.Readers/SchemaTypeConverter.cs
@@ -10,16 +10,16 @@ internal static class SchemaTypeConverter
10
{
11
internal static SchemaValueType ConvertToSchemaValueType(string value)
12
13
+ value = value.ToLowerInvariant();
14
return value switch
15
16
"string" => SchemaValueType.String,
- "number" => SchemaValueType.Number,
17
+ "number" or "double" => SchemaValueType.Number,
18
"integer" => SchemaValueType.Integer,
19
"boolean" => SchemaValueType.Boolean,
20
"array" => SchemaValueType.Array,
21
"object" => SchemaValueType.Object,
22
"null" => SchemaValueType.Null,
- "double" => SchemaValueType.Number,
23
_ => throw new NotSupportedException(),
24
};
25
}
0 commit comments