Skip to content

Commit 05a63f6

Browse files
committed
Add {{nrt?}} to support older versions
1 parent cd3da60 commit 05a63f6

20 files changed

Lines changed: 40 additions & 40 deletions

File tree

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ApiResponse`1.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {{packageName}}.{{clientPackage}}
3737
/// <summary>
3838
/// The raw binary stream (only set for binary responses)
3939
/// </summary>
40-
public System.IO.Stream? ContentStream { get; }
40+
public System.IO.Stream{{nrt?}} ContentStream { get; }
4141

4242
/// <summary>
4343
/// The DateTime when the request was retrieved.
@@ -89,7 +89,7 @@ namespace {{packageName}}.{{clientPackage}}
8989
/// <summary>
9090
/// The raw binary stream (only set for binary responses)
9191
/// </summary>
92-
public System.IO.Stream? ContentStream { get; protected set; }
92+
public System.IO.Stream{{nrt?}} ContentStream { get; protected set; }
9393

9494
/// <summary>
9595
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Client/ApiResponse`1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public partial interface IApiResponse
3838
/// <summary>
3939
/// The raw binary stream (only set for binary responses)
4040
/// </summary>
41-
public System.IO.Stream? ContentStream { get; }
41+
public System.IO.Stream ContentStream { get; }
4242

4343
/// <summary>
4444
/// The DateTime when the request was retrieved.
@@ -90,7 +90,7 @@ public partial class ApiResponse : IApiResponse
9090
/// <summary>
9191
/// The raw binary stream (only set for binary responses)
9292
/// </summary>
93-
public System.IO.Stream? ContentStream { get; protected set; }
93+
public System.IO.Stream ContentStream { get; protected set; }
9494

9595
/// <summary>
9696
/// The IsSuccessStatusCode from the api response

0 commit comments

Comments
 (0)