RicoSuter/NSwag

Default c# type for "number" in Swagger Spec

Open

#1,221 建立於 2018年3月14日

在 GitHub 查看
 (5 留言) (6 反應) (0 負責人)C# (6,291 star) (1,189 fork)batch import
help wantedproject: NJsonSchema.CodeGeneration.CSharptype: enhancement

描述

Apologies if this is covered elsewhere, but I cannot find if there is a setting to get NSwagStudio to create output using the Decimal type rather than Double. Our models are used by financial applications, so I want the properties that are defined as number to use Decimal. It's not a major, as I can just do a global replace in the generated code, but would be nice if there was a setting in the "Primitive types" section. Thanks

貢獻者指南