Forum Discussion

ramjet69's avatar
New Contributor
5 years ago

nullable and default are not generating as expected in my model

Good Morning,


I'm having difficulty with nullable: false not generating correctly. From everything I can see it is correct. I am wondering if this is applicable to my scenario.


Here is the relevant snippet:

   type: boolean
   nullable: false

Which produces:

public bool? IsWithdrawalPaused { get; set; }

For those not familiar with c# the bool? is a nullable and I want bool.


I don't know where the breakdown is and so perhaps it is the engine we are using to interpret the swagger into C#?


Any suggestions would be greatly appreciated.