Property of type double is parsed to decimal
Author: rwb196884Created Aug 20, 2026Updated Aug 20, 2026
Updated tools package swashbuckle.aspnetcore.cli from 6.4.0 to 10.1.7.
A C# ASP.NET WebAPI project writes a swagger file including
"Expenses": {
"minimum": 0,
"type": "number",
"description": "Expenses",
"format": "double",
"nullable": true
},for a property of type Nullable<double> that has attribute
[Range(0, double.MaxValue)]The generated JSON after the update now includes
"maximum": 1.7976931348623157E+308,But this causes openapi2csclientto fail saying
Newtonsoft.Json.JsonReaderException: Input string '1.7976931348623157E+308' is not a valid decimal.Source: RicoSuter/NSwag