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

贡献者指南

Default c# type for "number" in Swagger Spec · RicoSuter/NSwag#1221 | Good First Issue