Skip to content

Commit 6745340

Browse files
Make DateOnly nullable in the csharp client codegen (#19333)
1 parent c7d9857 commit 6745340

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public CSharpClientCodegen() {
369369
protected Set<String> getNullableTypes() {
370370
return GENERICHOST.equals(getLibrary())
371371
? super.getNullableTypes()
372-
: new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double", "DateTime", "DateTimeOffset", "Guid"));
372+
: new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double", "DateTime", "DateOnly", "DateTimeOffset", "Guid"));
373373
}
374374

375375
@Override

0 commit comments

Comments
 (0)