Make DateOnly nullable in the csharp client codegen (#19333)

This commit is contained in:
Alec Petersen 2024-10-06 22:49:17 -04:00 committed by GitHub
parent c7d9857c8d
commit 6745340c64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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