RicoSuter/NSwag

Default c# type for "number" in Swagger Spec

开放

#1,221 创建于 2018年3月14日

 (5 条评论) (6 个反应) (0 位负责人)C# (1,356 个派生)batch import
help wantedproject: NJsonSchema.CodeGeneration.CSharptype: enhancement

仓库指标

星标
 (7,358 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南