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() {
|
protected Set<String> getNullableTypes() {
|
||||||
return GENERICHOST.equals(getLibrary())
|
return GENERICHOST.equals(getLibrary())
|
||||||
? super.getNullableTypes()
|
? 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
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user