opened
gdurand
username_0
##### Description

In a Model class constructor, if a parameter of type enum is optional, it is defaulted to null, which is illegal for enums.

##### Swagger-codegen version

master

##### Suggest a Fix

Perhaps default it to 0, but it is a valid enum value so it's no better, unless enums are generated starting with value 1.
[csharp] Optional enum parameters in method declarations should not be = null
issue
created
jimschubert
username_1
This should already be addressed and fixed by #4145. @username_0 would you want to test my PR against your expectations?
comment
created
gdurand
username_0
Your PR fixes the compilation issue.
comment
created
wing328
username_2
@username_0 thanks for testing the PR, which has been merged into master.

Thanks @username_1 for the fix.
comment
closed
wing328
username_2
issue