RicoSuter/NSwag

Default c# type for "number" in Swagger Spec

Open

#1,221 opened on 2018年3月14日

GitHub で見る
 (5 comments) (6 reactions) (0 assignees)C# (6,291 stars) (1,189 forks)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

コントリビューターガイド