Skip to content

Commit 012cb5f

Browse files
committed
timespan code gen
1 parent 7b06fa6 commit 012cb5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private void addCentralizedPackageManagementOption(){
327327
@Override
328328
protected Set<String> getNullableTypes() {
329329
return new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double",
330-
"DateTime", "DateOnly", "DateTimeOffset", "Guid"));
330+
"DateTime", "DateOnly", "DateTimeOffset", "TimeSpan", "Guid"));
331331
}
332332

333333
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public CSharpFunctionsServerCodegen() {
260260
@Override
261261
protected Set<String> getNullableTypes() {
262262
return new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double",
263-
"DateTime", "DateTimeOffset", "Guid"));
263+
"DateTime", "DateTimeOffset", "TimeSpan", "Guid"));
264264
}
265265

266266
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public CSharpReducedClientCodegen() {
306306
@Override
307307
protected Set<String> getNullableTypes() {
308308
return new HashSet<>(Arrays.asList("decimal", "bool", "int", "uint", "long", "ulong", "float", "double",
309-
"DateTime", "DateTimeOffset", "Guid"));
309+
"DateTime", "DateTimeOffset", "TimeSpan", "Guid"));
310310
}
311311

312312
@Override

0 commit comments

Comments
 (0)