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

貢獻者指南