Comments (1)
OOPS!, My bad!
It's in the FileResponse
:
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.0.7.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class FileResponse : System.IDisposable
{
private System.IDisposable _client;
private System.IDisposable _response;
public int StatusCode { get; private set; }
public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
public System.IO.Stream Stream { get; private set; }
public bool IsPartial
{
get { return StatusCode == 206; }
}
public FileResponse(int statusCode, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.IO.Stream stream, System.IDisposable client, System.IDisposable response)
{
StatusCode = statusCode;
Headers = headers;
Stream = stream;
_client = client;
_response = response;
}
public void Dispose()
{
Stream.Dispose();
if (_response != null)
_response.Dispose();
if (_client != null)
_client.Dispose();
}
}
from nswag.
Related Issues (20)
- Could not find the JSON path of a referenced schema HOT 1
- Generated Generics have a long nearly unrecognizable name
- NSwag UI Loader keeps spinning
- MSBuild is failing when adding Hangfire job HOT 1
- Nswag v14.0.7 client generation issues with NetTopologySuite
- OpenAPI document generator does not account for `required` keyword when determining if a property is required HOT 3
- nswag not handling the maxLength and pattern properties in the OpenAPI specification for array items
- How to customize the order in which fields are displayed
- Class Style - Add EnumDataType Attribute on Enum to Allow ValidationContext
- Is NSwag officially dead? HOT 18
- MSB3073 The command "nswag run ../ApiProject1/nswag.json /variables:Configuration=Debug" exited with code 9009
- Trying to export csharp client
- Can some return values in the generated axios be changed to Promise<any> HOT 1
- Bug: impossible to generate exception classes for non-first client
- moment is not a function
- Flatten c# interfaces
- Adding FromHeader attribute to generated c# objects
- Can't apply settings when generating client via openapi2csclient
- NSwag webapi2openapi not working in NSwag.MsBuild 14.0.7 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nswag.