Default c# type for "number" in Swagger Spec
Author: PabloInNzCreated Mar 14, 2018Updated Sep 12, 2026
Labelstype: enhancementhelp wantedproject: NJsonSchema.CodeGeneration.CSharp
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
Source: RicoSuter/NSwag