RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.72k stars 1.29k forks source link

Add number type arguments to JsonSchemaToCSharpCommand #4836

Open yolofy opened 6 months ago

yolofy commented 6 months ago

The commit introduces four new argument properties to the JsonSchemaToCSharpCommandclass, specifically for handling number types in different formats. These include NumberType, NumberFloatType, NumberDoubleType, and NumberDecimalType. Each of these properties has a default .NET type assigned and can be easily switched if needed.