-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSwagStudio C# client generation issues #560
Comments
Please create new issues for each item and/or create a PR to fix them... |
About number 2: can you at least provide a working example of this basic class? |
I hope I get the time to write articles about this topic soon |
Re (3), while it is correct that the HTTP method is a string and anyone can add their own arbitrary one, it makes sense IMO to use references to the Re (4), please refer to the RFC. The I also have another:
I will see if I can get around to throwing together a PR for these; unfortunately I'm without Internet at home right now so it's difficult. |
Hmmm. The NSwag.CodeGeneration* projects target .NET Standard 1.0 which means that I can't include the System.Net.Http NuGet package, which means I can't inspect This is solved by changing the project to Profile 111 (netstandard 1.1), but that entails losing Windows Phone Silverlight 8.0 support... dunno how much of an issue that is. |
I would say leaking connections is a larger issue than losing Windows Phone Silverlight 8.0 and 8.1 support. |
@mchadrdk I agree. The default code should work using the most stable architecture. |
@mchadrdk |
InjectHttpClient will be set to true by default in the next major version (breaking change): #984 |
Tool itself:
Generated code:
new
s upSystem.Net.Http.HttpMethod
instances instead of using the appropriate static properties on theHttpMethod
class.System.Net.HttpStatusCode
. I suppose this could be useful if the server you're talking to returns nonstandard status codes, but even then, I'd just keep it as anint
.The text was updated successfully, but these errors were encountered: