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 5c8c498 commit b20677aCopy full SHA for b20677a
src/Microsoft.OpenApi.Readers/ParseNodes/ValueNode.cs
@@ -61,14 +61,13 @@ public override IOpenApiAny CreateAny()
61
62
if (Double.TryParse(value, out var dblValue))
63
{
64
- return new OpenApiDouble(dblValue);
+ return new OpenApiDouble(dblValue); // Note(darrmi): This may be better as decimal. Further investigation required.
65
}
66
67
if (DateTime.TryParse(value, out var datetimeValue))
68
69
return new OpenApiDateTime(datetimeValue);
70
71
- // TODO: add more codes to identify each primitive types
72
73
74
// if we can't identify the type of value, return it as string.
0 commit comments