forked from loafle/openapi-generator-original
Make DateOnly nullable in the csharp client codegen (#19333)
This commit is contained in:
parent
c7d9857c8d
commit
6745340c64
@ -369,7 +369,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
||||
protected Set<String> getNullableTypes() {
|
||||
return GENERICHOST.equals(getLibrary())
|
||||
? super.getNullableTypes()
|
||||
: new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double", "DateTime", "DateTimeOffset", "Guid"));
|
||||
: new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double", "DateTime", "DateOnly", "DateTimeOffset", "Guid"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user