From 01e4b2a41ad0f1ad5e7e78a2e40b077aabb086f8 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Sun, 26 May 2019 16:52:10 -0700 Subject: [PATCH 1/3] Use new Microsoft.Extensions.ApiDescription.Server package - provides document download on build and aligns with Microsoft.Extensions.ApiDescription.Client p2p references - this feature is off by default (though Microsoft.Extensions.ApiDescription.Server features are normally opt-out) - can be enabled using `true` - changes to `$(OpenApiDocumentsDirectory)` also enable the feature - timing can be changed using `false` - then, depend on the `RetrieveOpenApiDocuments` target from somewhere else - add `GetDocumentNames()` to `IDocumentProvider` and `AspNetCoreOpenApiDocumentGenerator` - rename `IDocumentProvider` namespace Microsoft.Extensions.ApiDescription -> Microsoft.Extensions.ApiDescriptions - avoid conflict with `Microsoft.AspNetCore.Mvc.ApiExplorer.ApiDescription` type - depend on Microsoft.Extensions.ApiDescription.Server package from NSwag.AspNetCore package - restore and update the previously-unused (then deleted) NSwag.AspNetCore.nuspec file nits: - remove and sort `using`s - update remaining 13.0.0 version - take VS suggestions in `NSwagServiceCollectionExtensions` - add missing `NSwagServiceCollectionExtensions` copyright header - correct spelling in `AspNetCoreOpenApiDocumentGenerator` --- .../NSwag.ApiDescription.Client.nuspec | 2 +- .../NSwagServiceCollectionExtensions.cs | 27 +++++--- src/NSwag.AspNetCore/IDocumentProvider.cs | 7 +- src/NSwag.AspNetCore/NSwag.AspNetCore.csproj | 49 ++++++++++++-- src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec | 63 ++++++++++++++++++ .../OpenApiDocumentProvider.cs | 19 ++++-- .../build/NSwag.AspNetCore.props | 9 +++ .../build/NSwag.AspNetCore.targets | 10 +++ .../NSwag.AspNetCore.props | 4 ++ .../NSwag.AspNetCore.targets | 4 ++ .../AspNetCoreOpenApiDocumentGenerator.cs | 2 +- .../Processors/OperationResponseProcessor.cs | 2 +- src/NSwag.Npm/package-lock.json | 2 +- src/UpgradeLog.htm | Bin 87360 -> 0 bytes 14 files changed, 174 insertions(+), 26 deletions(-) create mode 100644 src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec create mode 100644 src/NSwag.AspNetCore/build/NSwag.AspNetCore.props create mode 100644 src/NSwag.AspNetCore/build/NSwag.AspNetCore.targets create mode 100644 src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.props create mode 100644 src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.targets delete mode 100644 src/UpgradeLog.htm diff --git a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec b/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec index acd3e416bd..6728bb87cb 100644 --- a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec +++ b/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec @@ -14,7 +14,7 @@ Copyright © Rico Suter, 2019 true - + diff --git a/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs b/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs index 6441789691..f0f6bc1617 100644 --- a/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs +++ b/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs @@ -1,13 +1,22 @@ -using Microsoft.AspNetCore.Mvc; +//----------------------------------------------------------------------- +// +// Copyright (c) Rico Suter. All rights reserved. +// +// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// Rico Suter, mail@rsuter.com +//----------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.ApiDescriptions; using Microsoft.Extensions.Options; using NJsonSchema; using NSwag.AspNetCore; using NSwag.Generation; using NSwag.Generation.AspNetCore; using NSwag.Generation.Processors; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.Extensions.DependencyInjection { @@ -55,8 +64,10 @@ public static IServiceCollection AddSwaggerDocument(this IServiceCollection serv { serviceCollection.AddSingleton(services => { - var settings = new AspNetCoreOpenApiDocumentGeneratorSettings(); - settings.SchemaType = SchemaType.Swagger2; + var settings = new AspNetCoreOpenApiDocumentGeneratorSettings + { + SchemaType = SchemaType.Swagger2, + }; configure?.Invoke(settings, services); @@ -83,8 +94,8 @@ public static IServiceCollection AddSwaggerDocument(this IServiceCollection serv // Used by UseDocumentProvider CLI setting serviceCollection.AddSingleton(s => s.GetRequiredService()); - // Used by the Microsoft.Extensions.ApiDescription tool - serviceCollection.AddSingleton(s => s.GetRequiredService()); + // Used by the dotnet-getdocument tool from the Microsoft.Extensions.ApiDescription.Server package. + serviceCollection.AddSingleton(s => s.GetRequiredService()); } return serviceCollection; diff --git a/src/NSwag.AspNetCore/IDocumentProvider.cs b/src/NSwag.AspNetCore/IDocumentProvider.cs index 9e7caa9c33..a0f7b424e7 100644 --- a/src/NSwag.AspNetCore/IDocumentProvider.cs +++ b/src/NSwag.AspNetCore/IDocumentProvider.cs @@ -6,15 +6,18 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- +using System.Collections.Generic; using System.IO; using System.Threading.Tasks; -namespace Microsoft.Extensions.ApiDescription +namespace Microsoft.Extensions.ApiDescriptions { // This service will be looked up by name from the service collection when using - // the Microsoft.Extensions.ApiDescription tool + // the dotnet-getdocument tool from the Microsoft.Extensions.ApiDescription.Server package. internal interface IDocumentProvider { + IEnumerable GetDocumentNames(); + Task GenerateAsync(string documentName, TextWriter writer); } } diff --git a/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj b/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj index 7562a0e9c5..a1b99f17c0 100644 --- a/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj +++ b/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj @@ -13,6 +13,19 @@ Rico Suter https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png + $(MSBuildProjectName).nuspec + + + $(GenerateNuspecDependsOn);PopulateNuspec + + 1.0.3 + 1.0.3 + 1.0.2 + 0.3.0-preview6.19307.2 + 1.0.1 + 1.6.1 + 4.3.0 + 4.0.1 bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml @@ -23,17 +36,17 @@ - - - - + + + + - - + + @@ -41,4 +54,26 @@ - \ No newline at end of file + + + + + + id=$(PackageId); + authors=$(Authors); + configuration=$(Configuration); + description=$(PackageDescription); + version=$(PackageVersion); + + microsoftAspNetCoreMvcCorePackageVersion=$(MicrosoftAspNetCoreMvcCorePackageVersion); + microsoftAspNetCoreMvcFormattersJsonPackageVersion=$(MicrosoftAspNetCoreMvcFormattersJsonPackageVersion); + microsoftAspNetCoreStaticFilesPackageVersion=$(MicrosoftAspNetCoreStaticFilesPackageVersion); + microsoftExtensionsApiDescriptionServerPackageVersion=$(MicrosoftExtensionsApiDescriptionServerPackageVersion); + microsoftExtensionsFileProvidersEmbeddedPackageVersion=$(MicrosoftExtensionsFileProvidersEmbeddedPackageVersion); + netStandardLibraryPackageVersion=$(NETStandardLibraryPackageVersion); + systemIOFileSystemPackageVersion=$(SystemIOFileSystemPackageVersion); + systemXmlXPathXDocumentPackageVersion=$(SystemXmlXPathXDocumentPackageVersion); + + + + diff --git a/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec b/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec new file mode 100644 index 0000000000..e101784317 --- /dev/null +++ b/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec @@ -0,0 +1,63 @@ + + + + $id$ + $version$ + $authors$ + $description$ + Swagger Documentation WebApi AspNet TypeScript CodeGen + https://github.com/NSwag/NSwag + https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs b/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs index 969fe5b8bb..3ebeeef884 100644 --- a/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs +++ b/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs @@ -6,14 +6,14 @@ // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- -using Microsoft.Extensions.ApiDescription; -using Microsoft.Extensions.DependencyInjection; -using NSwag.Generation; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; +using Microsoft.Extensions.ApiDescriptions; +using Microsoft.Extensions.DependencyInjection; +using NSwag.Generation; namespace NSwag.AspNetCore { @@ -40,7 +40,7 @@ public async Task GenerateAsync(string documentName) if (group.Count() > 1) { throw new ArgumentException("The OpenAPI/Swagger document '" + group.Key + "' registered multiple times: " + - "Explicitely set the DocumentName property in " + + "Explicitly set the DocumentName property in " + nameof(NSwagServiceCollectionExtensions.AddSwaggerDocument) + "() or " + nameof(NSwagServiceCollectionExtensions.AddOpenApiDocument) + "()."); } @@ -56,7 +56,16 @@ public async Task GenerateAsync(string documentName) return await document.Generator.GenerateAsync(_serviceProvider); } - // Called by the Microsoft.Extensions.ApiDescription tool + // Called by the dotnet-getdocument tool from the Microsoft.Extensions.ApiDescription.Server package. + IEnumerable IDocumentProvider.GetDocumentNames() + { + // DocumentName may be null. But, if it is, cannot generate the registered document. + return _documents + .Where(document => document.DocumentName != null) + .Select(document => document.DocumentName); + } + + // Called by the dotnet-getdocument tool from the Microsoft.Extensions.ApiDescription.Server package. async Task IDocumentProvider.GenerateAsync(string documentName, TextWriter writer) { if (documentName == null) diff --git a/src/NSwag.AspNetCore/build/NSwag.AspNetCore.props b/src/NSwag.AspNetCore/build/NSwag.AspNetCore.props new file mode 100644 index 0000000000..69e1637334 --- /dev/null +++ b/src/NSwag.AspNetCore/build/NSwag.AspNetCore.props @@ -0,0 +1,9 @@ + + + + + + + diff --git a/src/NSwag.AspNetCore/build/NSwag.AspNetCore.targets b/src/NSwag.AspNetCore/build/NSwag.AspNetCore.targets new file mode 100644 index 0000000000..75f82548cd --- /dev/null +++ b/src/NSwag.AspNetCore/build/NSwag.AspNetCore.targets @@ -0,0 +1,10 @@ + + + + + true + + diff --git a/src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.props b/src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.props new file mode 100644 index 0000000000..444bb3947b --- /dev/null +++ b/src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.props @@ -0,0 +1,4 @@ + + + + diff --git a/src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.targets b/src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.targets new file mode 100644 index 0000000000..1ced71f051 --- /dev/null +++ b/src/NSwag.AspNetCore/buildMultiTargeting/NSwag.AspNetCore.targets @@ -0,0 +1,4 @@ + + + + diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs index 6dae56517e..f33e1fea97 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs @@ -361,4 +361,4 @@ private static string GetActionName(string actionName) return actionName; } } -} \ No newline at end of file +} diff --git a/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs index 021139b765..fb66c78d1a 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs @@ -125,4 +125,4 @@ private bool IsVoidResponse(Type returnType) return returnType == null || returnType.FullName == "System.Void"; } } -} \ No newline at end of file +} diff --git a/src/NSwag.Npm/package-lock.json b/src/NSwag.Npm/package-lock.json index ae8529f413..81bc2d3ace 100644 --- a/src/NSwag.Npm/package-lock.json +++ b/src/NSwag.Npm/package-lock.json @@ -1,5 +1,5 @@ { "name": "nswag", - "version": "12.1.0", + "version": "13.0.3", "lockfileVersion": 1 } diff --git a/src/UpgradeLog.htm b/src/UpgradeLog.htm deleted file mode 100644 index 9479f976e213b2ce7bafdd786ce4a0fac59220fb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 87360 zcmeI5`BxQ7lE>@UnRDiUxUJJq-`MPm=xbjeRz(m&5TCa1^g%#C+2pd?-Sel<%;%d) znpw-OTXi=sJ$3GZ+A<>}Bfc3Kxm3mf{?DJIKSVRp>u5S!i{3}e(QH(UcB9kiAli?9 zjs7G0_ed!Q_|>9%v=N<0+tC*1pQDrLh*Y)cjI;gdS#&=d<~I^OjD9BFC!U@`=V`PT z9dg_z)gk{+$suZ%b`9#Tv|4m&N2>bY=niG6lx^~Cnezj~#|E4zt>sStpOJQ(>jBEEb8aPZ8Xa?IJNm}m zJ?gJi)3JO5(IT`Dqa9Lg@PFIn9co&Zq;g5QLqBBji{WV(DkpFtX+4AHDK#5Fvg4(A zT8pmWJmlpR{!fwUHl_TH;}P|rNBh1;(ymJ0GxdAJ)iGx$W!|~rsrFQlFgoHPvuSV8tUx$?Y6prsk zbJ5uK-^1vamT0Rj2oopQ6i2WH_HV95ijun|I)DZ?Ok3SYO5*oUw2HKMcrFdR1%-Da zX=;shyWCa#*7b9vlWkg^yDeA-wO0RQC~fhRz1lHc4!1~2 z+@C;0lvLZYbpC1dR|ZWM|1Xe$>L59cP;R^x$fh~lEiL=@Ab!QG?syAPwiWDBW*MGa zYXNC3jUeA+?5N~ykN%E3YYh<|zp{wmk)E_UNHXsK52VSklwsdwHUZXz|@{U2|QS{{+k!ol10@UM|$K+T~G1+$pYDHJ7gQH0`mRbRDYGo`W>l8m-W( z3Aq{_3k`lOsUE2PmYC&5*xqf97HV7Upy^VCHi=*ISfFf0nkMf?$V$o6uaVo~^TmjWsuiRnhMWzt(JH|7gzI zt!dh;TD6@ka@@(1_&Fyx6KvN?oMvmZaXa%Q%d!atjgxflEtrrg>TWh!WBocmyC!CR zCRqwu6s5HmMl>`ZP;N{xXlkL=v#?H@-|jvJo!pZBzNF%$TMjSfTcXwH8f{M&I4S8+ zKUSZ~6y9sHJ%!rv8Jf|2qMm&I^3MmL`R&?rZP@ zEN@ZIUE|AZm0&pfW63t&s?L^?p9 zq4{=e^W<516v=|>N{Et1)gm{H7wpr>Px{Q0CwQxWZ%w7B~4>e`A(*Dyo`W*)sbGe9C#AX?7$p z%{!yDqag zcRhf-w6jRN6|@4YF=+f=ISl5Pr5#LKb8%~;PYq6b>!-!>shI+cdb=0NW3^jtp!;~V z{^%02mUk>$KEt_PTbGBSwx~H%J&k)g2gU|kKjf21bp)yhNi|PuH>={uCw6wk_Ji8( zqy1j$cSTo{RExB0;F>?x_`~(QE|q+$Q09B4x7NPBn#rqq6YXl0J*lyZA?+zX;fp)wAg(&W$l~8wUzB(X(Rgm2EBc1ybfi}J!v>-$q6b{5UgQo=gCJtX%xJnJZ;hT)pT1v?+TN%1>y=bL3J@UyWlH-GDiNA9r zp>xhIp(L&+;O03TKcJ4QP`M)Y6tpL~-r;Nq`p>!2Ozk8ozEZySy1wIl5zH-;M%HMH zbSLC~#Xf~CYBx^_E9`@QM?D|%C?K(c4Q>t-wZP43D2kqdm^AsQn?=kH|R# z&0Tc%h2sKczBE+cQtBkvYKLn^@8hJMM!HMX?ge*6X@gt`$Y2(!oNt7ylT6P&Usqh@pD{R@gA*AE$s}3>s^Z; zD-Y+kdpHg`agt|*Qq{S)L48*!dkQPP$@Mh! z-(gXwO|K(szXHuoZ1Nm5PdSr+y@I6{7aOEq!YXSvNFKmf(}z64Uw8$baqh`4-iDgS zB6^c)5e{C%_a;ZpbWYJ8JtIoIHW*6P^sg(>Z55P|+S}c|S9pZJL}r z$oLJp<>!2+tS{u6BF_uxkC-Qt>Nn)ML=9d+L%SU|c&PpHik(^n5u<_BnhCADT)hv0OARByPxAkT`C^eA`6;7lI&DE;UU{I{rM>_8k3Su+-K{8at;&GqAx z*xpuVEYwrUc84<-$JokMZ0`zIb(*8n%wc~Ya-780PH}IMCzl*gu-y~JMsILmZ*gke zJdGt^#qPf0s9A`|TuowgSLlD#OUSCf3BJfnxY zpck2euPc7vsh>uHUwEcoX$k5N$TP|P2T;+wXByeB!->3+Ix_o852Cq&Wq3M=&Ny|` zX#1E{;#6}il(9-}H2ZM~oikJ8N0hJiaCs0DH ztj4)oLw7Up!f-W{@8;m$TB^rR)hFIupQzdB=}7*zRR| zk+;~m39RxYR{Dbf8dHp7E6+%$8R|*wtHx>?AQ7a+o@j(L$GtIn56zc8=cif5w;a#7UgByC{=RYkfji&m4>ev~ zAWfa)cglXrUCo=1V~Y>Tsd?vBczuq|eol$AT^eQV)$9)fcWaLOg-S zC-RO^%7y6xr?Kbi$6nC~d?4j}>a%V5+2GD1Quz$;S`|E}9-8&knClF>b;@4lH$t9= z@Hhq)$#tCPW6&5gG|$K(S=Pgpbr@op4o}*54+&|#zfHb3&a7mg2IFX)zgHNpy>{FWLHB8xBRg}*o zshyHSQa?b?pP;9{{DK}-JMBMk{~gqY13eqzzGm}ZkoGH-G{Y^gK>UyJM6>iC;P8ah z(_GC^2l)l3P}IoulKKttcTB3f$@d(oeSx=i%H8D74o@B<^DS~LQT7x+NoAk%ghO$& zhYr+lYxIAJb~GxVq4ei)`Ix8QjqK);^%|vp;WrQOv+!~OEsd>T@??|quW&j;dd=K# zkXx%x%g9M}ouN(-shRvH?J9kO99Jn{82rk8_v`G~x%vFCzGUKe{M#>?=&LkBjn;$J zV&o6$J1bhDwcmXCLJhQ^QmX(i?Hy8U{vrI9jB;hC&HGA9o}XafCRl|Rt-GEgMeXuz zoZofaFU8I`5QvWOo*fn#XBl*phA@saQTHU`eJ9g|Uzk9bL zxz3-=Z&&{9`nUe))kQM5Z_0=D*F2wm3BPvn%#IbzzW32s za!=VEvldf}{@G-|Tps6=!u^<}2C0j_>!5ioSz0IYpK~S9eElQTMx!$BNB7XyAvL#J zzi0HOcHmK!l&V(t^J-|wF#N)z;cQtvhS9s1|GYTiU%t>g6>P`-wlb zZdq-=bI9!n)ea%qDCJZuk?r$#O|#~j(G@=RwuJ1UcH_tz+$M6bkq0-(6j04bxbVcYR8W3$0%r|3Lk`MkSuZd!##| zJv2kLZTqgjxQ`T{;niqI@E(7E<}c2f-bhmWmbbWjo$diXQNAQ>Db3rvvqVlRnqjj0 z%hb!b+STAO$=6@u_jh)&SqV*&TJ;yYG=sB^?b5q<78ymQV!5%sz#sT3Un6dQihhEh z?5Bh9png_f$ZOM|I4)!zHG`t}+lxrAtPGQ~RBKy@8{6ij#XLEB|7sBKmFpPIYcICr z`W_N3yK`JTW%2PB?#FTF^qJ2`&1ltrB|>jgYF}KdbX1!>Yv$ysV}8GBQ|711f11Zf z+HzTsR^Qans@#zoA85yo_AG|_w$>%IUimh%NPBfHH7<3Ftjd06+l0J!*LnNpG?dlu z8r#wQcBg!0+kY?YXbnp&Tb!osW z46Tkm*FI;BAvOCWPe^MN`ff#WI{CJzi1o5*@~l)Auin?rx3u~E<&|nZPK`sfBhYz; zq1Tz^F}gW| z8ToiFV!5Ru*CxFL{t^9y`@{UnH&Hux&*Gk6e)(4W`d^e2mm`U8TifF3w%Ey&u`8*@ zERx=W)@+(QH2?Ks>0P?hmx!e?t8a}JbtkTE_biSRH$u^uAN;7re~}_iqZqf&j@y0z z4&$~j83GxO42)6zktMw6te8ivn z9m;y^Kx@SL*1_wqnB1}vHJE7G_l-r}XD-#+4q@OP;~%|Sx@*#YhT}W%{uBRyHAl@u zZg8&gM6C(ey|!tZyYVw*dXq+;yLRN~Nv)aviH|%rTHK=Uc@&Gae~0ZP*Rnswyhx3K z=Sk~$Duy9v|NeliLV4xa$sw><-IO{`-Hr+E9GUjzYk!4p$4P77JYR7SA|HYIPxCaK z#!NWl^NPCrZ&LX2h@bPhk4@DakNa+=8|CNgpt!(GSr(LIZo3?w0>g0)&BsR*%B)<=TwH9dzsv5|Epd7IAK*v z@1S{w0{ zZ*lUT+SPf##;)~wMO?AgT36avq22vDx8Kw$8y%&c*eHsJW22#{Z1JG^?Q`zQR?ElN z4mZEH?c&+!yYWdrUz-)+6N4?y?5sh<##d3Ukyz{I4npW6zs+@Q_aoLQnR>8G1)p3`mXj3$&<@e6jbLfSsn$wK$ zQ_rKDOxc`vyjRSlolF_hmV})y-BET+Z$McOOE^sLFPsIJe*dL*uh^(Zdaqi@(5$WO zn%3uZogBU1Wesf=oNBFbm9%FD`$vrX=gFhob~aP1_d-VT)T*7v!a63oP;D)L_E?!x1ABC!0_bWjXqlxtdVU z?a+$PYTPxo&Zb@ttMM74CIu#?*8B(2+{S@o#S z8fo3@g#C+Zi#k*PVPmRTofk`64h_X=Ryc9Jlsh)=tvYW3#;z@ZM$(ND(kxXuY!snZ zp~9iT9eat2hoD05?JncJEU_nQ?Ya+3-!G^6?EICkosQkHm%4t0uIH{jTlsAo)oT_~ z{bu&FayoBJqtd(6w>$Py@8jrw4SmbAbNY_oE2rml-b%ktukP4O{XRy&8hNTsC*#>B z^eRt!yS8xlL>IL%$Pv2cBheDhRgaL}AuIP=(uuR-jQ z_7iHx^^2LAt8nD--4@9eTzN6R_whPT=ISKI(mWMGU6P{;hqoJtgXXIztfTIx?fPG7Rn7w+|?L45_@?H$hYaWWreTXh_69*N9p|seMjUt)yL-RJIvV)?8SL2gT#=t z3YWJNmuvL2`aX|+pwcW|0jQW?Bv<*#tt&$zWwBm7R1WFH+qZwGTB zoiw7trxjlM886x&ueav5Gy7Qov>mK?DruznXBAFv2Tt6aLROy_YSYdhbOtxB%zXS* z^A(}A`)|HNUXe$LuJmq7K8{?fux8EPh)DK%=`!{mr zg@=B}!(d`pZPE@{E&3gp?cyXXuMuW^X%&9@A3yJzZ#uvm&gzpadR&V3vEwK;LXLZ0 z;ig}4lfB2=y|?51h!NiPOya3{&Q@_&yo5OZis!3v*{`^K#oXi+dnWYd5c}qL*b~N| zwu-Mb6*u0{@h0B^|Nr>baj4%VW~UEQ7RTOgRogyyrDeAV*d5bocVD>Z^gF|$mczFQ zv>tVY&JWD^I@#AWPT49N8dHq-C5_WneMi6c9dVu6H<0r@nP%xbgRwLpc}PpAuJCpn z@ixkP(D~LZu4$$32Hr%sINp@H!rN`d+n{+PQ}N8oBG2dS76yF@Wznd&OjV}}m$ws_ z=^2E)es?tSb*?h&CC%uTLEcD(H{Pd`HE^S*{&@#1sb{@Y==?mrue!thfxg<8e&3>a z&Q96E#=PaDv2ni24&HuTYSgPQ%iHf9rr)P7j?*Ni?&CIDV(U1L%b>#b?ZmaBpC~HA z9u~Km-x;@RVb1R0HY}kGPQ!c^F8ddk_Pe?HU#g7HJT}YGIu4srPU5dw`U-cq7kAlj z_NJ|4a|~p?A>2KTX7gPhxmjFSc>Y(zbGV17Q`in^_8RA5*`30CwTG(Fnsz_UCp5Ri z;a6N*!Frg#o45|kDUabWcV(~p(_XJK+vTG~O!J=U5nnmbdocP!+ct0b#qrrZeQS6u zM%T?ARy%8Yzvm*HMY0ha4ow6m&5wrP^SAR)#Z#BTOF60)S{zE;v3EOkR*elg!-n`M z4~k!Nj9pQ5tz;~tWGtm*{?+T8vPQ{gLXe|ut*nd2Qf9rUj?Fuatx^1ITbY{KBc+H$ zdszIhCNfs5u>%!bO?`&fw_@fhqMl~+d^GbgLbx=U9XrSSayoM{sH|pfEH9n!Mp+TN zl6+_dXDbl_OHrM|I9|y-J|eXH_UASd(ih5wG?lCJlTpRu5#p>Bv~h+Gse_&>=98a4 ziuZWhZ7j5g@tIuor`>3b5{u`wTq=)ZiiPr1^e7((tvJOn{?{8cePO%;QO}N47LRik zmyF^uDK_Pu3@Z?iskQcl_pp57CZ1094LNbvPIV1s@8dSvI%vhfM&l|j36-vTH@2j{ zlw@=yuF}xN^8C2am~Cn zUjt#=)OQ2>uP;T*R{3uSEBgAbxwlIiVL&k;lks8o#D1wl*w^zvD%wgQQYT_2uC@e~R+15tR0}4sms1B%ujUAp39KjS-P{pDfC3Et4Mr8OgQcsh9g5xN$6DRnN-~@LDqK6#kNTGWpP<_PN zIOqBn+8F!lr}@qBe1@OZqV3&AJ%LOgz#N4d3s@uw=m-p{vj@m!%D zxlMMgnaxq}A#^1zjP>x&NdgP@Smv9Ya9)V%4qR2+7Jtd>3*1>XK zOk)=}RmWD5R4n#a8e_%s6-Qq&dKE5hKP(TabGR%f`+h-evxsDAtTxM09Hq@DRru@% zKATCsUyzxOn3l$3I!$r(rSn#J>jvJ^a_$#|WyfbrqbxgJainGEuh7;Fv}Mb>Ul13M z6qiO?{CRPN#q(9j>ISmnGVT{d6^k{OMq06a#SvJHUWLqVAhVe4`vtLCk@3>_%t}=p zjaj)X>~#ZsS(5G-q@|n(rQVOo)VfwWYN4B@Ppk+;f_-GknT#T5Z@1ociQMr?m4DPY zLS^F_hP-^OAU2O)h1l*QHc$4q3$gktP#E*FHT=e@bQ;ZZ>J_$c4%=}}+%}|VMV8F- zG4fiuzB!PN$=P}2XO&X5fSYUqSsLljmJmk7Y=-kNZL25_X;c{PK1M@%_a_2<6uf5m z^C??JpQlh^ulv~Z((ZTUxw((x2y{8xN1~%tA+ncY4>2kD>Oh>6g zW-pQHq~4#%EP_R)X%&6STj8zyc$1v_7h&Po`kGlj)g(;c4)Q`e6$*QU!cgY@j7S&v zv=|;;>h{p+s8m?&6&9Vu`wxlws)W7)xPw3Fzqyhf)wS^qeQ_$SAh$U63env~ba74e zAJXG7T=VR0JY_40jZ>&l*XohT zExsFTqW^7mW8O8xp|7y}7|5MKev)c;TSBt5s%7*`%SdYGwzZTn0&yAtJ>K3zDxGf$ zA@vIRH;MdE6a9$vX7LsC5#B6!YshX!wL)~a5#3A!w-L$lFMzpyn(g5`n`U=VpIuhf z7H+yNWb5T$r-g(&{JPOvLi)XIIbpd~E9%cy6zb@9wy5w6aP799kXE-^N?1nKDsH}2 zg!<^W77&kFm>uuB(acfvyyX$zoMwgSZX&w5{QCpJ;VMP5=-YAp7SCA}y~Qb3*zG)a zi%Y*>kQE^k|$ z<9Mu2TaU12`m&N@I45i0Jhrj+_;)JKsEdZ2j0Eqvo8)_Dim~k?$SX2-yk?5At@ycm zAMdkSAHHkugz=S=b&OL`e#QTdM?qiXo+6kk=5IXxxvgaEnUUgP9UKLeety}6aQ8vs$M6C_Z{RH?iQ$1+e0EXHU}Kf*_Wd$7ZqG*VKnsO z`Vt2|YJFV7X^Zj#uJrZ6q-I*zyYpenYEChwlNQBs_y5uJ^h6KP31o#{d8T From 4e94b9d2bd558eb7bc2fa5f944b6a3ff08d62c68 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Thu, 13 Jun 2019 09:39:01 -0700 Subject: [PATCH 2/3] Use latest GitHub URLs - https://github.com/NSwag and https://github.com/RSuter just add an extra hop to https://github.com/RicoSuter --- CHANGELOG.md | 6 +-- README.md | 52 +++++++++---------- .../NSwag.Annotations.csproj | 2 +- .../OpenApiExtensionDataAttribute.cs | 2 +- src/NSwag.Annotations/OpenApiFileAttribute.cs | 2 +- .../OpenApiIgnoreAttribute.cs | 2 +- .../OpenApiOperationAttribute.cs | 2 +- .../OpenApiOperationProcessorAttribute.cs | 2 +- src/NSwag.Annotations/OpenApiTagAttribute.cs | 4 +- src/NSwag.Annotations/OpenApiTagsAttribute.cs | 2 +- .../ResponseTypeAttribute.cs | 2 +- .../SwaggerDefaultResponseAttribute.cs | 2 +- .../SwaggerResponseAttribute.cs | 2 +- .../WillReadBodyAttribute.cs | 2 +- .../NSwag.ApiDescription.Client.nuspec | 4 +- .../Middlewares/OpenApiDocumentMiddleware.cs | 2 +- .../Middlewares/RedirectToIndexMiddleware.cs | 2 +- .../NSwag.AspNet.Owin.csproj | 2 +- src/NSwag.AspNet.Owin/SwaggerExtensions.cs | 2 +- .../JsonExceptionFilterAttribute.cs | 2 +- .../NSwag.AspNet.WebApi.csproj | 2 +- .../NSwag.AspNetCore.Launcher.x86.csproj | 2 +- .../NSwag.AspNetCore.Launcher.csproj | 2 +- .../NSwagServiceCollectionExtensions.cs | 2 +- ...NSwagSwaggerGeneratorSettingsExtensions.cs | 2 +- src/NSwag.AspNetCore/HttpRequestExtension.cs | 2 +- src/NSwag.AspNetCore/IDocumentProvider.cs | 2 +- .../JsonExceptionFilterAttribute.cs | 4 +- .../Middlewares/OpenApiDocumentMiddleware.cs | 2 +- .../Middlewares/RedirectToIndexMiddleware.cs | 2 +- src/NSwag.AspNetCore/NSwag.AspNetCore.csproj | 2 +- src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec | 4 +- src/NSwag.AspNetCore/OAuth2ClientSettings.cs | 2 +- .../OpenApiConfigureMvcOptions.cs | 2 +- .../OpenApiDocumentMiddlewareSettings.cs | 8 +-- .../OpenApiDocumentProvider.cs | 2 +- .../OpenApiDocumentRegistration.cs | 2 +- src/NSwag.AspNetCore/ReDocSettings.cs | 2 +- src/NSwag.AspNetCore/SwaggerSettings.cs | 2 +- src/NSwag.AspNetCore/SwaggerUi3Settings.cs | 4 +- src/NSwag.AspNetCore/SwaggerUiSettings.cs | 2 +- src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs | 2 +- .../AppDomainIsolation.cs | 2 +- .../AssemblyConfigurationFileTransformer.cs | 4 +- src/NSwag.AssemblyLoader/AssemblyLoader.cs | 2 +- .../CustomAssemblyLoadContext.cs | 2 +- .../NSwag.AssemblyLoader.csproj | 2 +- .../Utilities/PathUtilities.cs | 2 +- .../CSharpClientGenerator.cs | 2 +- .../CSharpClientGeneratorSettings.cs | 2 +- .../CSharpControllerGenerator.cs | 2 +- .../CSharpControllerGeneratorSettings.cs | 2 +- .../CSharpGeneratorBase.cs | 2 +- .../CSharpGeneratorBaseSettings.cs | 2 +- .../Models/CSharpClientTemplateModel.cs | 2 +- .../Models/CSharpControllerOperationModel.cs | 6 +-- .../CSharpControllerRouteNamingStrategy.cs | 2 +- .../Models/CSharpControllerStyle.cs | 2 +- .../Models/CSharpControllerTarget.cs | 2 +- .../Models/CSharpControllerTemplateModel.cs | 2 +- .../Models/CSharpExceptionDescriptionModel.cs | 2 +- .../Models/CSharpFileTemplateModel.cs | 2 +- .../Models/CSharpOperationModel.cs | 2 +- .../Models/CSharpParameterModel.cs | 14 ++--- .../Models/CSharpResponseModel.cs | 4 +- .../Models/CSharpTemplateModelBase.cs | 2 +- .../NSwag.CodeGeneration.CSharp.csproj | 2 +- .../HttpClass.cs | 4 +- .../InjectionTokenType.cs | 2 +- .../Models/TypeScriptClientTemplateModel.cs | 2 +- .../Models/TypeScriptFileTemplateModel.cs | 2 +- .../Models/TypeScriptFrameworkAngularModel.cs | 6 +-- .../Models/TypeScriptFrameworkModel.cs | 2 +- .../Models/TypeScriptFrameworkRxJsModel.cs | 2 +- .../Models/TypeScriptOperationModel.cs | 2 +- .../Models/TypeScriptParameterModel.cs | 2 +- .../Models/TypeScriptResponseModel.cs | 6 +-- .../NSwag.CodeGeneration.TypeScript.csproj | 2 +- .../PromiseType.cs | 2 +- .../TypeScriptClientGenerator.cs | 2 +- .../TypeScriptClientGeneratorSettings.cs | 2 +- .../TypeScriptTemplate.cs | 2 +- .../TypeScriptTypeNameGenerator.cs | 2 +- .../ClientGeneratorBase.cs | 10 ++-- .../ClientGeneratorBaseSettings.cs | 2 +- .../ClientGeneratorOutputType.cs | 2 +- .../ControllerGeneratorBaseSettings.cs | 2 +- .../DefaultParameterNameGenerator.cs | 2 +- .../DefaultTemplateFactory.cs | 4 +- src/NSwag.CodeGeneration/IClientGenerator.cs | 2 +- .../IParameterNameGenerator.cs | 2 +- .../JsonSchemaExtensions.cs | 2 +- .../Models/IOperationModel.cs | 2 +- .../Models/OperationModelBase.cs | 4 +- .../Models/ParameterModelBase.cs | 2 +- .../Models/ResponseModelBase.cs | 6 +-- .../NSwag.CodeGeneration.csproj | 2 +- .../IOperationNameGenerator.cs | 2 +- ...entsFromFirstTagAndOperationIdGenerator.cs | 2 +- ...agAndPathSegmentsOperationNameGenerator.cs | 2 +- ...tsFromOperationIdOperationNameGenerator.cs | 2 +- ...sFromPathSegmentsOperationNameGenerator.cs | 6 +-- ...ntFromOperationIdOperationNameGenerator.cs | 6 +-- ...tFromPathSegmentsOperationNameGenerator.cs | 6 +-- .../CodeGeneratorCommandBase.cs | 2 +- .../JsonSchemaToCSharpCommand.cs | 2 +- .../JsonSchemaToTypeScriptCommand.cs | 2 +- .../OpenApiToCSharpClientCommand.cs | 2 +- .../OpenApiToCSharpCommandBase.cs | 2 +- .../OpenApiToCSharpControllerCommand.cs | 2 +- .../OpenApiToTypeScriptClientCommand.cs | 2 +- .../CodeGeneration/OperationGenerationMode.cs | 2 +- .../Document/CreateDocumentCommand.cs | 4 +- .../Document/ExecuteDocumentCommand.cs | 2 +- .../AspNetCore/AspNetCoreToOpenApiCommand.cs | 2 +- ...CoreToOpenApiGeneratorCommandEntryPoint.cs | 2 +- .../Commands/Generation/AspNetCore/Exe.cs | 2 +- .../Generation/AspNetCore/ProjectMetadata.cs | 2 +- .../Generation/FromDocumentCommand.cs | 2 +- .../Commands/Generation/ListTypesCommand.cs | 2 +- .../ListWebApiControllersCommand.cs | 2 +- .../Generation/OpenApiGeneratorCommandBase.cs | 2 +- .../Generation/TypesToOpenApiCommand.cs | 2 +- .../WebApi/WebApiToOpenApiCommand.cs | 2 +- src/NSwag.Commands/Commands/IOutputCommand.cs | 2 +- .../Commands/InputOutputCommandBase.cs | 2 +- .../Commands/IsolatedCommandBase.cs | 2 +- .../IsolatedSwaggerOutputCommandBase.cs | 2 +- .../Commands/OutputCommandBase.cs | 2 +- .../Commands/OutputCommandExtensions.cs | 4 +- .../Commands/Tooling/VersionCommand.cs | 2 +- src/NSwag.Commands/NSwag.Commands.csproj | 2 +- src/NSwag.Commands/NSwagCommandProcessor.cs | 2 +- src/NSwag.Commands/NSwagDocument.cs | 2 +- src/NSwag.Commands/NSwagDocumentBase.cs | 2 +- .../OpenApiDocumentExecutionResult.cs | 2 +- .../OperationGenerationModeConverter.cs | 2 +- src/NSwag.Commands/Runtime.cs | 2 +- src/NSwag.Commands/RuntimeUtilities.cs | 2 +- .../NSwag.Console.x86.csproj | 2 +- src/NSwag.Console/NSwag.Console.csproj | 2 +- .../NSwag.ConsoleCore.csproj | 6 +-- src/NSwag.Core.Tests/DocumentLoadingTests.cs | 4 +- src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj | 2 +- src/NSwag.Core.Yaml/OpenApiYamlDocument.cs | 2 +- src/NSwag.Core/HttpUtilities.cs | 2 +- src/NSwag.Core/JsonExpectedSchema.cs | 2 +- src/NSwag.Core/NSwag.Core.csproj | 2 +- src/NSwag.Core/OpenApiCallback.cs | 2 +- src/NSwag.Core/OpenApiComponents.cs | 2 +- src/NSwag.Core/OpenApiContact.cs | 2 +- .../OpenApiDocument.Serialization.cs | 2 +- src/NSwag.Core/OpenApiDocument.cs | 6 +-- src/NSwag.Core/OpenApiEncoding.cs | 2 +- src/NSwag.Core/OpenApiExample.cs | 2 +- .../OpenApiExternalDocumentation.cs | 2 +- src/NSwag.Core/OpenApiHeaders.cs | 2 +- src/NSwag.Core/OpenApiInfo.cs | 2 +- src/NSwag.Core/OpenApiLicense.cs | 2 +- src/NSwag.Core/OpenApiLink.cs | 2 +- src/NSwag.Core/OpenApiMediaType.cs | 2 +- src/NSwag.Core/OpenApiOAuth2Flow.cs | 2 +- src/NSwag.Core/OpenApiOAuthFlow.cs | 2 +- src/NSwag.Core/OpenApiOAuthFlows.cs | 2 +- src/NSwag.Core/OpenApiOperation.cs | 2 +- src/NSwag.Core/OpenApiOperationDescription.cs | 2 +- src/NSwag.Core/OpenApiOperationMethod.cs | 2 +- src/NSwag.Core/OpenApiParameter.cs | 2 +- .../OpenApiParameterCollectionFormat.cs | 2 +- src/NSwag.Core/OpenApiParameterKind.cs | 2 +- src/NSwag.Core/OpenApiPathItem.cs | 2 +- src/NSwag.Core/OpenApiRequestBody.cs | 2 +- src/NSwag.Core/OpenApiResponse.cs | 6 +-- src/NSwag.Core/OpenApiSchema.cs | 2 +- src/NSwag.Core/OpenApiSchemaResolver.cs | 2 +- .../OpenApiSecurityApiKeyLocation.cs | 2 +- src/NSwag.Core/OpenApiSecurityRequirement.cs | 2 +- src/NSwag.Core/OpenApiSecurityScheme.cs | 4 +- src/NSwag.Core/OpenApiSecuritySchemeType.cs | 2 +- src/NSwag.Core/OpenApiServer.cs | 2 +- src/NSwag.Core/OpenApiServerVariable.cs | 2 +- src/NSwag.Core/OpenApiTag.cs | 2 +- .../AspNetCoreToSwaggerGenerationTests.cs | 2 +- .../OperationResponseProcessorTest.cs | 2 +- .../AspNetCoreOpenApiDocumentGenerator.cs | 2 +- ...NetCoreOpenApiDocumentGeneratorSettings.cs | 2 +- .../AspNetCoreOperationProcessorContext.cs | 20 +++---- .../NSwag.Generation.AspNetCore.csproj | 2 +- ...pNetCoreOperationSecurityScopeProcessor.cs | 2 +- .../AspNetCoreOperationTagsProcessor.cs | 2 +- .../Processors/OperationParameterProcessor.cs | 2 +- .../Processors/OperationResponseProcessor.cs | 2 +- .../Attributes/ComplexParametersTests.cs | 4 +- .../Attributes/RouteInheritanceTests.cs | 2 +- .../Attributes/RouteTests.cs | 2 +- .../SwashbuckleAnnotationsTests.cs | 2 +- .../RouteTests.cs | 2 +- .../Infrastructure/RouteAttributeFacade.cs | 2 +- .../RoutePrefixAttributeFacade.cs | 2 +- .../NSwag.Generation.WebApi.csproj | 2 +- .../Processors/OperationConsumesProcessor.cs | 2 +- .../Processors/OperationParameterProcessor.cs | 6 +-- .../Processors/OperationResponseProcessor.cs | 2 +- .../WebApiOpenApiDocumentGenerator.cs | 2 +- .../WebApiOpenApiDocumentGeneratorSettings.cs | 2 +- .../IOpenApiDocumentGenerator.cs | 2 +- src/NSwag.Generation/NSwag.Generation.csproj | 2 +- .../OpenApiDocumentGenerator.cs | 2 +- .../OpenApiDocumentGeneratorSettings.cs | 2 +- .../OpenApiSchemaGenerator.cs | 2 +- .../Processors/ActionDocumentProcessor.cs | 2 +- .../Processors/ApiVersionProcessor.cs | 2 +- .../DocumentProcessorCollection.cs | 2 +- .../OperationProcessorCollection.cs | 2 +- .../Contexts/DocumentProcessorContext.cs | 2 +- .../Contexts/OperationProcessorContext.cs | 2 +- .../DocumentExtensionDataProcessor.cs | 2 +- .../Processors/DocumentTagsProcessor.cs | 2 +- .../Processors/IDocumentProcessor.cs | 2 +- .../Processors/IOperationProcessor.cs | 2 +- .../OperationExtensionDataProcessor.cs | 2 +- .../Processors/OperationProcessor.cs | 2 +- .../OperationResponseDescription.cs | 2 +- .../OperationResponseProcessorBase.cs | 4 +- ...OperationSummaryAndDescriptionProcessor.cs | 4 +- .../Processors/OperationTagsProcessor.cs | 2 +- .../OperationSecurityScopeProcessor.cs | 2 +- .../Security/SecurityDefinitionAppender.cs | 2 +- .../package.json | 2 +- .../Controllers/PersonsController.cs | 2 +- src/NSwag.MSBuild/NSwag.MSBuild.nuspec | 6 +-- src/NSwag.Npm/README.md | 34 ++++++------ src/NSwag.Npm/package.json | 4 +- src/NSwagStudio.Chocolatey/LICENSE.txt | 2 +- src/NSwagStudio.Chocolatey/NSwagStudio.nuspec | 4 +- src/NSwagStudio/ISwaggerGeneratorView.cs | 2 +- .../CodeGenerators/SwaggerOutputViewModel.cs | 2 +- ...SwaggerToCSharpClientGeneratorViewModel.cs | 2 +- ...gerToCSharpControllerGeneratorViewModel.cs | 2 +- ...gerToTypeScriptClientGeneratorViewModel.cs | 2 +- src/NSwagStudio/ViewModels/MainWindowModel.cs | 2 +- .../AspNetCoreToSwaggerGeneratorViewModel.cs | 4 +- ...AssemblyTypeToSwaggerGeneratorViewModel.cs | 2 +- .../WebApiToSwaggerGeneratorViewModel.cs | 4 +- src/NSwagStudio/ViewModels/ViewModelBase.cs | 2 +- src/NSwagStudio/Views/MainWindow.xaml | 22 ++++---- 246 files changed, 366 insertions(+), 366 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fc805343c..3ebff22bf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,12 @@ ## Release v11.3 -See https://github.com/RSuter/NSwag/releases/tag/NSwag-Build-841 +See https://github.com/RicoSuter/NSwag/releases/tag/NSwag-Build-841 ## Release v11.0 -See https://github.com/NSwag/NSwag/releases/tag/NSwag-Build-829 +See https://github.com/RicoSuter/NSwag/releases/tag/NSwag-Build-829 ## Release v10.0 -See https://github.com/NSwag/NSwag/releases/tag/NSwag-Build-813 +See https://github.com/RicoSuter/NSwag/releases/tag/NSwag-Build-813 diff --git a/README.md b/README.md index 3d43bf60a1..1666aef053 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ ## NSwag: The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript - [![NuGet Version](https://img.shields.io/nuget/v/NSwag.Core.svg)](https://www.nuget.org/packages?q=NSwag) +[![NuGet Version](https://img.shields.io/nuget/v/NSwag.Core.svg)](https://www.nuget.org/packages?q=NSwag) [![npm](https://img.shields.io/npm/v/nswag.svg)](https://www.npmjs.com/package/nswag) [![Build status](https://img.shields.io/appveyor/ci/rsuter/nswag-25x6o.svg?label=build)](https://ci.appveyor.com/project/rsuter/nswag-25x6o) [![MyGet](https://img.shields.io/myget/nswag/v/NSwag.Core.svg?label=preview%20nuget)](https://www.myget.org/feed/Packages/nswag) [![Gitter](https://img.shields.io/badge/gitter-join%20chat-1dce73.svg)](https://gitter.im/NSwag/NSwag) [![StackOverflow](https://img.shields.io/badge/questions-on%20StackOverflow-orange.svg?style=flat)](http://stackoverflow.com/questions/tagged/nswag) -[![Wiki](https://img.shields.io/badge/docs-in%20wiki-orange.svg?style=flat)](https://github.com/rsuter/nswag/wiki) +[![Wiki](https://img.shields.io/badge/docs-in%20wiki-orange.svg?style=flat)](https://github.com/RicoSuter/nswag/wiki) [![Backers on Open Collective](https://opencollective.com/NSwag/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/NSwag/sponsors/badge.svg)](#sponsors) @@ -30,12 +30,12 @@ The project is developed and maintained by [Rico Suter](http://rsuter.com) and o **Ways to use the toolchain:** -- Simple to use Windows GUI, [NSwagStudio](https://github.com/NSwag/NSwag/wiki/NSwagStudio) -- By using the [OpenAPI or OpenAPI UI OWIN and ASP.NET Core Middlewares](https://github.com/NSwag/NSwag/wiki/Middlewares) (also serves the [Swagger UI](https://github.com/swagger-api/swagger-ui)) (recommended) -- Via [command line](https://github.com/NSwag/NSwag/wiki/CommandLine) (Windows, Mac and Linux support through [Mono](http://www.mono-project.com/) or .NET Core console binary, also via [NPM package](https://www.npmjs.com/package/nswag)) +- Simple to use Windows GUI, [NSwagStudio](https://github.com/RicoSuter/NSwag/wiki/NSwagStudio) +- By using the [OpenAPI or OpenAPI UI OWIN and ASP.NET Core Middlewares](https://github.com/RicoSuter/NSwag/wiki/Middlewares) (also serves the [Swagger UI](https://github.com/swagger-api/swagger-ui)) (recommended) +- Via [command line](https://github.com/RicoSuter/NSwag/wiki/CommandLine) (Windows, Mac and Linux support through [Mono](http://www.mono-project.com/) or .NET Core console binary, also via [NPM package](https://www.npmjs.com/package/nswag)) - In your C# code, via [NuGet](https://www.nuget.org/packages?q=NSwag) -- In your [MSBuild targets](https://github.com/NSwag/NSwag/wiki/MSBuild) -- With [ServiceProjectReference](https://github.com/NSwag/NSwag/wiki/ServiceProjectReference) tags in your .csproj (preview) +- In your [MSBuild targets](https://github.com/RicoSuter/NSwag/wiki/MSBuild) +- With [ServiceProjectReference](https://github.com/RicoSuter/NSwag/wiki/ServiceProjectReference) tags in your .csproj (preview) - In your [Azure V2 Functions](https://github.com/Jusas/NSwag.AzureFunctionsV2) (external project, might not use latest NSwag version) **Tutorials:** @@ -47,27 +47,27 @@ The project is developed and maintained by [Rico Suter](http://rsuter.com) and o **OpenAPI/Swagger Generators:** - ASP.NET Web API assembly to OpenAPI (supports .NET Core) - - [AspNetCoreOpenApiDocumentGenerator](https://github.com/RSuter/NSwag/wiki/AspNetCoreOpenApiDocumentGenerator) - - [WebApiOpenApiDocumentGenerator](https://github.com/NSwag/NSwag/wiki/WebApiOpenApiDocumentGenerator) + - [AspNetCoreOpenApiDocumentGenerator](https://github.com/RicoSuter/NSwag/wiki/AspNetCoreOpenApiDocumentGenerator) + - [WebApiOpenApiDocumentGenerator](https://github.com/RicoSuter/NSwag/wiki/WebApiOpenApiDocumentGenerator) - Generates an OpenAPI specification for Web API controllers - - [WebApiToOpenApiCommand](https://github.com/NSwag/NSwag/wiki/WebApiToOpenApiCommand) + - [WebApiToOpenApiCommand](https://github.com/RicoSuter/NSwag/wiki/WebApiToOpenApiCommand) - Generates an OpenAPI specification for controllers in an external Web API assembly - - [Also supports loading of .NET Core assemblies](https://github.com/RSuter/NSwag/wiki/Assembly-loading) - - [TypesToOpenApiCommand](https://github.com/NSwag/NSwag/wiki/TypesToOpenApiCommand) + - [Also supports loading of .NET Core assemblies](https://github.com/RicoSuter/NSwag/wiki/Assembly-loading) + - [TypesToOpenApiCommand](https://github.com/RicoSuter/NSwag/wiki/TypesToOpenApiCommand) - Generates an OpenAPI specification containing only types from .NET assemblies **Code Generators:** - **CSharp Client** - - [CSharpClientGenerator](https://github.com/NSwag/NSwag/wiki/CSharpClientGenerator) + - [CSharpClientGenerator](https://github.com/RicoSuter/NSwag/wiki/CSharpClientGenerator) - Generates C# clients from an OpenAPI specification - Generates POCOs or classes implementing [INotifyPropertyChanged](https://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged(v=vs.110).aspx) supporting DTOs - The generated clients can be used with full .NET, .NET Core, Xamarin and .NET Standard 1.4 in general - **CSharp Controllers** (contract first/schema first development) - - [CSharpControllerGenerator](https://github.com/NSwag/NSwag/wiki/CSharpControllerGenerator) + - [CSharpControllerGenerator](https://github.com/RicoSuter/NSwag/wiki/CSharpControllerGenerator) - Generates Web API Controllers based on a OpenAPI specification (ASP.NET Web API and ASP.NET Core) - **TypeScript Client** - - [TypeScriptClientGenerator](https://github.com/NSwag/NSwag/wiki/TypeScriptClientGenerator) + - [TypeScriptClientGenerator](https://github.com/RicoSuter/NSwag/wiki/TypeScriptClientGenerator) - Generates TypeScript clients from a OpenAPI specification - Available templates/supported libraries: - JQuery with Callbacks, `JQueryCallbacks` @@ -93,7 +93,7 @@ The project is developed and maintained by [Rico Suter](http://rsuter.com) and o Specification: - **[NSwag.Core](https://www.nuget.org/packages/NSwag.Core/)** (.NET Standard 1.0 / 2.0 and .NET 4.5): - - The OpenAPI/Swagger reader and writer classes, see [OpenApiDocument](https://github.com/RSuter/NSwag/wiki/OpenApiDocument) + - The OpenAPI/Swagger reader and writer classes, see [OpenApiDocument](https://github.com/RicoSuter/NSwag/wiki/OpenApiDocument) - **[NSwag.Core.Yaml](https://www.nuget.org/packages/NSwag.Core.Yaml/)** (.NET Standard 1.3 / 2.0 and .NET 4.5): - Extensions to read and write YAML OpenAPI specifications - **[NSwag.Annotations](https://www.nuget.org/packages/NSwag.Annotations/)** (.NET Standard 1.0 / 2.0 and .NET 4.5): @@ -104,7 +104,7 @@ OpenAPI generation: - **[NSwag.Generation](https://www.nuget.org/packages/NSwag.Generation/)** (.NET Standard 1.0 / 2.0 and .NET 4.5): - Classes to generate OpenAPI specifications - **[NSwag.Generation.WebApi](https://www.nuget.org/packages/NSwag.Generation.WebApi/)** (.NET Standard 1.0 / 2.0 and .NET 4.5): - - Classes to generate OpenAPI specifications from Web API controllers, see [WebApiOpenApiDocumentGenerator](https://github.com/RSuter/NSwag/wiki/WebApiOpenApiDocumentGenerator) + - Classes to generate OpenAPI specifications from Web API controllers, see [WebApiOpenApiDocumentGenerator](https://github.com/RicoSuter/NSwag/wiki/WebApiOpenApiDocumentGenerator) - **[NSwag.Generation.AspNetCore](https://www.nuget.org/packages/NSwag.Generation.AspNetCore/)** (.NET Standard 1.6 / 2.0 and .NET 4.5.1): - (Experimental) Classes to generate OpenAPI specifications from ASP.NET Core MVC controllers using the ApiExplorer @@ -113,17 +113,17 @@ Code generation: - **[NSwag.CodeGeneration](https://www.nuget.org/packages/NSwag.CodeGeneration/)** (.NET Standard 1.3 / 2.0 / .NET 4.5.1): - Base classes to generate clients from OpenAPI specifications - **[NSwag.CodeGeneration.CSharp](https://www.nuget.org/packages/NSwag.CodeGeneration.CSharp/)** (.NET Standard 1.3 and .NET 4.5.1): - - Classes to generate C# clients from OpenAPI specifications, see [CSharpClientGenerator](https://github.com/RSuter/NSwag/wiki/CSharpClientGenerator) and [CSharpControllerGenerator](https://github.com/RSuter/NSwag/wiki/CSharpControllerGenerator) + - Classes to generate C# clients from OpenAPI specifications, see [CSharpClientGenerator](https://github.com/RicoSuter/NSwag/wiki/CSharpClientGenerator) and [CSharpControllerGenerator](https://github.com/RicoSuter/NSwag/wiki/CSharpControllerGenerator) - **[NSwag.CodeGeneration.TypeScript](https://www.nuget.org/packages/NSwag.CodeGeneration.TypeScript/)** (.NET Standard 1.3 and .NET 4.5.1): - - Classes to generate TypeScript clients from OpenAPI specifications, see [TypeScriptClientGenerator](https://github.com/RSuter/NSwag/wiki/TypeScriptClientGenerator) + - Classes to generate TypeScript clients from OpenAPI specifications, see [TypeScriptClientGenerator](https://github.com/RicoSuter/NSwag/wiki/TypeScriptClientGenerator) ASP.NET and ASP.NET Core: - **[NSwag.AspNetCore](https://www.nuget.org/packages/NSwag.AspNetCore/)** (.NET Standard 1.6 / 2.0 and .NET 4.5.1+): - **[NSwag.AspNet.Owin](https://www.nuget.org/packages/NSwag.AspNet.Owin/)** (.NET 4.5+): - - [ASP.NET Core/OWIN middlewares](https://github.com/NSwag/NSwag/wiki/Middlewares) for serving OpenAPI specifications and Swagger UI + - [ASP.NET Core/OWIN middlewares](https://github.com/RicoSuter/NSwag/wiki/Middlewares) for serving OpenAPI specifications and Swagger UI - **[NSwag.AspNet.WebApi](https://www.nuget.org/packages/NSwag.AspNet.WebApi/)** (.NET 4.5+): - - ASP.NET Web API filter which serializes exceptions ([JsonExceptionFilterAttribute](https://github.com/NSwag/NSwag/wiki/JsonExceptionFilterAttribute)) + - ASP.NET Web API filter which serializes exceptions ([JsonExceptionFilterAttribute](https://github.com/RicoSuter/NSwag/wiki/JsonExceptionFilterAttribute)) Frontends: @@ -132,7 +132,7 @@ Frontends: - **[NSwag.Commands](https://www.nuget.org/packages/NSwag.Commands/)** (.NET Standard 1.6 / 2.0 and .NET 4.5.1+): - Commands for the command line tool implementations and UI - **[NSwag.MSBuild](https://www.nuget.org/packages/NSwag.MSBuild/)** (MSBuild .targets): - - Adds a .targets file to your Visual Studio project, so that you can run the NSwag command line tool in an MSBuild target, see [MSBuild](https://github.com/RSuter/NSwag/wiki/MSBuild) + - Adds a .targets file to your Visual Studio project, so that you can run the NSwag command line tool in an MSBuild target, see [MSBuild](https://github.com/RicoSuter/NSwag/wiki/MSBuild) - **[NSwag.ConsoleCore](https://www.nuget.org/packages/NSwag.ConsoleCore/)** (.NET Core 1.0, 1.1, 2.0, 2.1 and 2.2): - Command line tool for .NET Core (`dotnet nswag`) - **[NSwagStudio](https://chocolatey.org/packages/nswagstudio)** (Chocolatey, Windows): @@ -146,7 +146,7 @@ The NuGet packages may require the **Microsoft.NETCore.Portable.Compatibility** ### Usage in C# -To register the [middlewares](https://github.com/RSuter/NSwag/wiki/AspNetCoreOpenApiDocumentGenerator) to generate a OpenAPI spec and render the UI, register NSwag in `Startup.cs`: +To register the [middlewares](https://github.com/RicoSuter/NSwag/wiki/AspNetCoreOpenApiDocumentGenerator) to generate a OpenAPI spec and render the UI, register NSwag in `Startup.cs`: ```csharp public class Startup @@ -187,11 +187,11 @@ var clientGenerator = new CSharpClientGenerator(document, clientSettings); var code = clientGenerator.GenerateFile(); ``` -Check out the [project Wiki](https://github.com/NSwag/NSwag/wiki) for more information. +Check out the [project Wiki](https://github.com/RicoSuter/NSwag/wiki) for more information. ### NSwagStudio -The generators can be used in a comfortable and simple Windows GUI called [NSwagStudio](https://github.com/NSwag/NSwag/wiki/NSwagStudio): +The generators can be used in a comfortable and simple Windows GUI called [NSwagStudio](https://github.com/RicoSuter/NSwag/wiki/NSwagStudio): [![](https://raw.githubusercontent.com/NSwag/NSwag/master/assets/screenshots/03_WebAPI_CSharp.png)](https://raw.githubusercontent.com/NSwag/NSwag/master/assets/screenshots/03_WebAPI_CSharp.png) @@ -215,7 +215,7 @@ Sponsors: ## Contributors This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - + ## Backers diff --git a/src/NSwag.Annotations/NSwag.Annotations.csproj b/src/NSwag.Annotations/NSwag.Annotations.csproj index 399a5c76b1..4681bbb061 100644 --- a/src/NSwag.Annotations/NSwag.Annotations.csproj +++ b/src/NSwag.Annotations/NSwag.Annotations.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs b/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs index 383da0522f..c70b1b1eb0 100644 --- a/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs +++ b/src/NSwag.Annotations/OpenApiExtensionDataAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/OpenApiFileAttribute.cs b/src/NSwag.Annotations/OpenApiFileAttribute.cs index fde25afb47..8d631671c0 100644 --- a/src/NSwag.Annotations/OpenApiFileAttribute.cs +++ b/src/NSwag.Annotations/OpenApiFileAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs b/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs index de27a84f4d..16ffaa529e 100644 --- a/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs +++ b/src/NSwag.Annotations/OpenApiIgnoreAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/OpenApiOperationAttribute.cs b/src/NSwag.Annotations/OpenApiOperationAttribute.cs index a9a9ca16ce..38e72e1c2c 100644 --- a/src/NSwag.Annotations/OpenApiOperationAttribute.cs +++ b/src/NSwag.Annotations/OpenApiOperationAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs b/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs index ed956f04c4..740323d81b 100644 --- a/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs +++ b/src/NSwag.Annotations/OpenApiOperationProcessorAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/OpenApiTagAttribute.cs b/src/NSwag.Annotations/OpenApiTagAttribute.cs index ccc732065f..5b0d598976 100644 --- a/src/NSwag.Annotations/OpenApiTagAttribute.cs +++ b/src/NSwag.Annotations/OpenApiTagAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -28,7 +28,7 @@ public class SwaggerTagAttribute : Attribute /// Initializes a new instance of the class. public SwaggerTagAttribute(string name) { - Name = name; + Name = name; } /// Gets or sets the name. diff --git a/src/NSwag.Annotations/OpenApiTagsAttribute.cs b/src/NSwag.Annotations/OpenApiTagsAttribute.cs index 6b4682236e..b97f04722f 100644 --- a/src/NSwag.Annotations/OpenApiTagsAttribute.cs +++ b/src/NSwag.Annotations/OpenApiTagsAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/ResponseTypeAttribute.cs b/src/NSwag.Annotations/ResponseTypeAttribute.cs index 543eb59995..8e5b0abb70 100644 --- a/src/NSwag.Annotations/ResponseTypeAttribute.cs +++ b/src/NSwag.Annotations/ResponseTypeAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs b/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs index 33884a00c1..b6d82bb875 100644 --- a/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs +++ b/src/NSwag.Annotations/SwaggerDefaultResponseAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/SwaggerResponseAttribute.cs b/src/NSwag.Annotations/SwaggerResponseAttribute.cs index 686d2296ac..6be1bafb89 100644 --- a/src/NSwag.Annotations/SwaggerResponseAttribute.cs +++ b/src/NSwag.Annotations/SwaggerResponseAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Annotations/WillReadBodyAttribute.cs b/src/NSwag.Annotations/WillReadBodyAttribute.cs index 0b4758c840..07ac08eae9 100644 --- a/src/NSwag.Annotations/WillReadBodyAttribute.cs +++ b/src/NSwag.Annotations/WillReadBodyAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec b/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec index 6728bb87cb..8d4c5614db 100644 --- a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec +++ b/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.nuspec @@ -6,8 +6,8 @@ Rico Suter Rico Suter false - https://github.com/NSwag/NSwag/blob/master/LICENSE.md - https://github.com/NSwag/NSwag + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png NSwag: The Swagger API toolchain for .NET and TypeScript Swagger Documentation WebApi AspNet TypeScript CodeGen diff --git a/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs b/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs index 204c00f060..956f62d3e6 100644 --- a/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs +++ b/src/NSwag.AspNet.Owin/Middlewares/OpenApiDocumentMiddleware.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs b/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs index f7763f6bc2..f32b746fbd 100644 --- a/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs +++ b/src/NSwag.AspNet.Owin/Middlewares/RedirectToIndexMiddleware.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNet.Owin/NSwag.AspNet.Owin.csproj b/src/NSwag.AspNet.Owin/NSwag.AspNet.Owin.csproj index ba60c36fe6..4aa4f70876 100644 --- a/src/NSwag.AspNet.Owin/NSwag.AspNet.Owin.csproj +++ b/src/NSwag.AspNet.Owin/NSwag.AspNet.Owin.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.AspNet.Owin/SwaggerExtensions.cs b/src/NSwag.AspNet.Owin/SwaggerExtensions.cs index 4331b5e777..90992b019f 100644 --- a/src/NSwag.AspNet.Owin/SwaggerExtensions.cs +++ b/src/NSwag.AspNet.Owin/SwaggerExtensions.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs b/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs index 50bc91ceab..0a462752d9 100644 --- a/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs +++ b/src/NSwag.AspNet.WebApi/JsonExceptionFilterAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md +// https://github.com/RicoSuter/NJsonSchema/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj b/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj index 006ccae5a2..ddfa870bcd 100644 --- a/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj +++ b/src/NSwag.AspNet.WebApi/NSwag.AspNet.WebApi.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.AspNetCore.Launcher.x86/NSwag.AspNetCore.Launcher.x86.csproj b/src/NSwag.AspNetCore.Launcher.x86/NSwag.AspNetCore.Launcher.x86.csproj index 539f074f5b..97c0d90fc8 100644 --- a/src/NSwag.AspNetCore.Launcher.x86/NSwag.AspNetCore.Launcher.x86.csproj +++ b/src/NSwag.AspNetCore.Launcher.x86/NSwag.AspNetCore.Launcher.x86.csproj @@ -9,7 +9,7 @@ Rico Suter NSwag: The Swagger API toolchain for .NET and TypeScript Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png Swagger Documentation WebApi AspNet TypeScript CodeGen diff --git a/src/NSwag.AspNetCore.Launcher/NSwag.AspNetCore.Launcher.csproj b/src/NSwag.AspNetCore.Launcher/NSwag.AspNetCore.Launcher.csproj index 8b49736eee..2d20a291a1 100644 --- a/src/NSwag.AspNetCore.Launcher/NSwag.AspNetCore.Launcher.csproj +++ b/src/NSwag.AspNetCore.Launcher/NSwag.AspNetCore.Launcher.csproj @@ -9,7 +9,7 @@ Rico Suter NSwag: The Swagger API toolchain for .NET and TypeScript Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png Swagger Documentation WebApi AspNet TypeScript CodeGen diff --git a/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs b/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs index f0f6bc1617..2a1c02bf98 100644 --- a/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs +++ b/src/NSwag.AspNetCore/Extensions/NSwagServiceCollectionExtensions.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs b/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs index fad3a8961e..2763816311 100644 --- a/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs +++ b/src/NSwag.AspNetCore/Extensions/NSwagSwaggerGeneratorSettingsExtensions.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/HttpRequestExtension.cs b/src/NSwag.AspNetCore/HttpRequestExtension.cs index 23f590505a..2ad146e42c 100644 --- a/src/NSwag.AspNetCore/HttpRequestExtension.cs +++ b/src/NSwag.AspNetCore/HttpRequestExtension.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/IDocumentProvider.cs b/src/NSwag.AspNetCore/IDocumentProvider.cs index a0f7b424e7..145b807b5d 100644 --- a/src/NSwag.AspNetCore/IDocumentProvider.cs +++ b/src/NSwag.AspNetCore/IDocumentProvider.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs b/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs index 67c6d04144..d901a07a2f 100644 --- a/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs +++ b/src/NSwag.AspNetCore/JsonExceptionFilterAttribute.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -71,7 +71,7 @@ public override void OnActionExecuted(ActionExecutedContext context) ContentType = "application/json" }; - // Required otherwise the framework exception handlers ignores the + // Required otherwise the framework exception handlers ignores the // Result and redirects to a error page or displays in dev mode the stack trace. context.ExceptionHandled = true; } diff --git a/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs b/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs index 169c28c430..153fbf4b2e 100644 --- a/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs +++ b/src/NSwag.AspNetCore/Middlewares/OpenApiDocumentMiddleware.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs b/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs index b06a80481a..d90a607fc5 100644 --- a/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs +++ b/src/NSwag.AspNetCore/Middlewares/RedirectToIndexMiddleware.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj b/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj index a1b99f17c0..7b9c18f7b5 100644 --- a/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj +++ b/src/NSwag.AspNetCore/NSwag.AspNetCore.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation AspNetCore NetCore TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec b/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec index e101784317..63edeef3ba 100644 --- a/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec +++ b/src/NSwag.AspNetCore/NSwag.AspNetCore.nuspec @@ -6,8 +6,8 @@ $authors$ $description$ Swagger Documentation WebApi AspNet TypeScript CodeGen - https://github.com/NSwag/NSwag - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png diff --git a/src/NSwag.AspNetCore/OAuth2ClientSettings.cs b/src/NSwag.AspNetCore/OAuth2ClientSettings.cs index 0dc59bcd7e..8b6ea87b18 100644 --- a/src/NSwag.AspNetCore/OAuth2ClientSettings.cs +++ b/src/NSwag.AspNetCore/OAuth2ClientSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/OpenApiConfigureMvcOptions.cs b/src/NSwag.AspNetCore/OpenApiConfigureMvcOptions.cs index 93d3b8cbc0..76c8f17940 100644 --- a/src/NSwag.AspNetCore/OpenApiConfigureMvcOptions.cs +++ b/src/NSwag.AspNetCore/OpenApiConfigureMvcOptions.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs b/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs index 00881c64c0..024774fc06 100644 --- a/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs +++ b/src/NSwag.AspNetCore/OpenApiDocumentMiddlewareSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -27,10 +27,10 @@ public class OpenApiDocumentMiddlewareSettings /// Gets or sets the Swagger post process action. /// Should only be used to transform the document related to the request. - /// Caution: This action will not be called by the CLI or NSwagStudio + /// Caution: This action will not be called by the CLI or NSwagStudio /// (use PostProcess in AddSwaggerDocument instead). public Action PostProcess { get; set; } - + /// /// Should be used in a case when your application is exposed under different URLs, e.g. the application /// is accessible from your internal network and behind a reverse-proxy. In this case, NSwag has to generate @@ -38,7 +38,7 @@ public class OpenApiDocumentMiddlewareSettings /// NSwag which swagger JSON document it should return by providing a unique key that matches the required /// access point (either it's an internal network HTTP request or an HTTP request from a reverse-proxy). /// Hint: In a case of reverse proxy, the key may include of X-Forwarded-Host/X-Forwarded-Proto header values. - /// + /// /// public Func CreateDocumentCacheKey { get; set; } = r => r.Host.ToString(); } diff --git a/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs b/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs index 3ebeeef884..04e3e0e816 100644 --- a/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs +++ b/src/NSwag.AspNetCore/OpenApiDocumentProvider.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/OpenApiDocumentRegistration.cs b/src/NSwag.AspNetCore/OpenApiDocumentRegistration.cs index ea89deef40..88f09ecc27 100644 --- a/src/NSwag.AspNetCore/OpenApiDocumentRegistration.cs +++ b/src/NSwag.AspNetCore/OpenApiDocumentRegistration.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/ReDocSettings.cs b/src/NSwag.AspNetCore/ReDocSettings.cs index 9aea707e5e..fad349d2ed 100644 --- a/src/NSwag.AspNetCore/ReDocSettings.cs +++ b/src/NSwag.AspNetCore/ReDocSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/SwaggerSettings.cs b/src/NSwag.AspNetCore/SwaggerSettings.cs index e3e4b7f138..5fa858bd29 100644 --- a/src/NSwag.AspNetCore/SwaggerSettings.cs +++ b/src/NSwag.AspNetCore/SwaggerSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/SwaggerUi3Settings.cs b/src/NSwag.AspNetCore/SwaggerUi3Settings.cs index 0035c7e3cb..17f21ff30a 100644 --- a/src/NSwag.AspNetCore/SwaggerUi3Settings.cs +++ b/src/NSwag.AspNetCore/SwaggerUi3Settings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -157,7 +157,7 @@ public SwaggerUi3Route(string name, string url) Name = name; Url = url; } - + /// Gets the route URL. [JsonProperty("url")] public string Url { get; internal set; } diff --git a/src/NSwag.AspNetCore/SwaggerUiSettings.cs b/src/NSwag.AspNetCore/SwaggerUiSettings.cs index a41e24c927..b96f19b84c 100644 --- a/src/NSwag.AspNetCore/SwaggerUiSettings.cs +++ b/src/NSwag.AspNetCore/SwaggerUiSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs b/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs index 14295e464f..9643a97f2b 100644 --- a/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs +++ b/src/NSwag.AspNetCore/SwaggerUiSettingsBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AssemblyLoader/AppDomainIsolation.cs b/src/NSwag.AssemblyLoader/AppDomainIsolation.cs index c62da18b5b..7254d4a813 100644 --- a/src/NSwag.AssemblyLoader/AppDomainIsolation.cs +++ b/src/NSwag.AssemblyLoader/AppDomainIsolation.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AssemblyLoader/AssemblyConfigurationFileTransformer.cs b/src/NSwag.AssemblyLoader/AssemblyConfigurationFileTransformer.cs index 022da122c9..ccecf8ce93 100644 --- a/src/NSwag.AssemblyLoader/AssemblyConfigurationFileTransformer.cs +++ b/src/NSwag.AssemblyLoader/AssemblyConfigurationFileTransformer.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -127,7 +127,7 @@ public BindingRedirect(string name, string newVersion, string publicKeyToken) PublicKeyToken = publicKeyToken; } -#if NET451 +#if NET451 public BindingRedirect(string name, Type newVersionType, string publicKeyToken) : this(name, newVersionType.Assembly.GetName().Version.ToString(), publicKeyToken) diff --git a/src/NSwag.AssemblyLoader/AssemblyLoader.cs b/src/NSwag.AssemblyLoader/AssemblyLoader.cs index 1a79159fc0..11458d7d77 100644 --- a/src/NSwag.AssemblyLoader/AssemblyLoader.cs +++ b/src/NSwag.AssemblyLoader/AssemblyLoader.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AssemblyLoader/CustomAssemblyLoadContext.cs b/src/NSwag.AssemblyLoader/CustomAssemblyLoadContext.cs index 8eeb98c545..a747dccdcb 100644 --- a/src/NSwag.AssemblyLoader/CustomAssemblyLoadContext.cs +++ b/src/NSwag.AssemblyLoader/CustomAssemblyLoadContext.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.AssemblyLoader/NSwag.AssemblyLoader.csproj b/src/NSwag.AssemblyLoader/NSwag.AssemblyLoader.csproj index 5b3a4354e9..64ef0b95e4 100644 --- a/src/NSwag.AssemblyLoader/NSwag.AssemblyLoader.csproj +++ b/src/NSwag.AssemblyLoader/NSwag.AssemblyLoader.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.AssemblyLoader/Utilities/PathUtilities.cs b/src/NSwag.AssemblyLoader/Utilities/PathUtilities.cs index b07ab8a712..bcbb8fc8b3 100644 --- a/src/NSwag.AssemblyLoader/Utilities/PathUtilities.cs +++ b/src/NSwag.AssemblyLoader/Utilities/PathUtilities.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs b/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs index ddddbee830..32c07f2155 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpClientGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpClientGeneratorSettings.cs b/src/NSwag.CodeGeneration.CSharp/CSharpClientGeneratorSettings.cs index 13a7eef48f..217f03c1bc 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpClientGeneratorSettings.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpClientGeneratorSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs b/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs index 86e34cb9b8..7074ba084a 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpControllerGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpControllerGeneratorSettings.cs b/src/NSwag.CodeGeneration.CSharp/CSharpControllerGeneratorSettings.cs index 8f4e95f399..6e45838244 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpControllerGeneratorSettings.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpControllerGeneratorSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs b/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs index c76ca41349..1d879c69e1 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBaseSettings.cs b/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBaseSettings.cs index 4e5aa637c1..e09ed39910 100644 --- a/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBaseSettings.cs +++ b/src/NSwag.CodeGeneration.CSharp/CSharpGeneratorBaseSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs index 053e05ee3d..2c64d973f1 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerOperationModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerOperationModel.cs index 9d4d50a015..2e3bfa6588 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerOperationModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerOperationModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -20,8 +20,8 @@ public class CSharpControllerOperationModel : CSharpOperationModel /// The settings. /// The generator. /// The resolver. - public CSharpControllerOperationModel(OpenApiOperation operation, CSharpControllerGeneratorSettings settings, - CSharpControllerGenerator generator, CSharpTypeResolver resolver) + public CSharpControllerOperationModel(OpenApiOperation operation, CSharpControllerGeneratorSettings settings, + CSharpControllerGenerator generator, CSharpTypeResolver resolver) : base(operation, settings, generator, resolver) { _settings = settings; diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerRouteNamingStrategy.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerRouteNamingStrategy.cs index 2ddb29219b..1d05e4daee 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerRouteNamingStrategy.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerRouteNamingStrategy.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerStyle.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerStyle.cs index 84f9f8aae7..dbc27aa926 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerStyle.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerStyle.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTarget.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTarget.cs index b1c481f1dc..f1ee9540a8 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTarget.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTarget.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs index 1e4b945322..eb330b4fca 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpControllerTemplateModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpExceptionDescriptionModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpExceptionDescriptionModel.cs index c9bf18f14e..0a08396b5b 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpExceptionDescriptionModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpExceptionDescriptionModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs index 77d8940f25..c918c0620c 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpFileTemplateModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs index e7bb90fe47..354b311a14 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpOperationModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs index 39b8830e71..043993317e 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpParameterModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -27,13 +27,13 @@ public class CSharpParameterModel : ParameterModelBase /// The client generator base. /// The type resolver. public CSharpParameterModel( - string parameterName, - string variableName, - string typeName, + string parameterName, + string variableName, + string typeName, OpenApiParameter parameter, - IList allParameters, - CodeGeneratorSettingsBase settings, - IClientGenerator generator, + IList allParameters, + CodeGeneratorSettingsBase settings, + IClientGenerator generator, TypeResolverBase typeResolver) : base(parameterName, variableName, typeName, parameter, allParameters, settings, generator, typeResolver) { diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpResponseModel.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpResponseModel.cs index 5c6e389f1d..833b9f7e24 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpResponseModel.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpResponseModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -25,7 +25,7 @@ public class CSharpResponseModel : ResponseModelBase /// The client generator. /// The resolver. /// The settings. - public CSharpResponseModel(IOperationModel operationModel, OpenApiOperation operation, string statusCode, OpenApiResponse response, + public CSharpResponseModel(IOperationModel operationModel, OpenApiOperation operation, string statusCode, OpenApiResponse response, bool isPrimarySuccessResponse, JsonSchema exceptionSchema, IClientGenerator generator, TypeResolverBase resolver, CodeGeneratorSettingsBase settings) : base(operationModel, operation, statusCode, response, isPrimarySuccessResponse, exceptionSchema, resolver, settings, generator) { diff --git a/src/NSwag.CodeGeneration.CSharp/Models/CSharpTemplateModelBase.cs b/src/NSwag.CodeGeneration.CSharp/Models/CSharpTemplateModelBase.cs index d6d3422954..1b59ed1c08 100644 --- a/src/NSwag.CodeGeneration.CSharp/Models/CSharpTemplateModelBase.cs +++ b/src/NSwag.CodeGeneration.CSharp/Models/CSharpTemplateModelBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj b/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj index 2336aad935..e3018dd1ac 100644 --- a/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj +++ b/src/NSwag.CodeGeneration.CSharp/NSwag.CodeGeneration.CSharp.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.CodeGeneration.TypeScript/HttpClass.cs b/src/NSwag.CodeGeneration.TypeScript/HttpClass.cs index 91457bc919..4fbef81e3b 100644 --- a/src/NSwag.CodeGeneration.TypeScript/HttpClass.cs +++ b/src/NSwag.CodeGeneration.TypeScript/HttpClass.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -12,7 +12,7 @@ namespace NSwag.CodeGeneration.TypeScript public enum HttpClass { /// Use the legacy/obsolete Http class (pre Angular 4.3). - Http, + Http, /// Use the new HttpClient class (Angular 4.3+). HttpClient diff --git a/src/NSwag.CodeGeneration.TypeScript/InjectionTokenType.cs b/src/NSwag.CodeGeneration.TypeScript/InjectionTokenType.cs index 4578231171..f6f3b30cb0 100644 --- a/src/NSwag.CodeGeneration.TypeScript/InjectionTokenType.cs +++ b/src/NSwag.CodeGeneration.TypeScript/InjectionTokenType.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs index 8d3166f849..cf2068e358 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptClientTemplateModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs index 9d2448f21c..742c4ebd71 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFileTemplateModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkAngularModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkAngularModel.cs index 224ffe48b1..be90ad4602 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkAngularModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkAngularModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -28,11 +28,11 @@ internal TypeScriptFrameworkAngularModel(TypeScriptClientGeneratorSettings setti public string HttpClass => UseHttpClient ? "HttpClient" : "Http"; /// Gets a value indicating whether to use HttpClient with the Angular template. - public bool UseHttpClient => _settings.Template == TypeScriptTemplate.Angular && + public bool UseHttpClient => _settings.Template == TypeScriptTemplate.Angular && _settings.HttpClass == TypeScript.HttpClass.HttpClient; /// Gets a value indicating whether to use the Angular 6 Singleton Provider (Angular template only, default: false). - public bool UseSingletonProvider => _settings.Template == TypeScriptTemplate.Angular && + public bool UseSingletonProvider => _settings.Template == TypeScriptTemplate.Angular && _settings.UseSingletonProvider; /// Gets whether the export keyword should be added to all classes and enums. diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkModel.cs index 46ef71f585..ea7b9f15bf 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkRxJsModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkRxJsModel.cs index 0ebb934972..e966f91933 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkRxJsModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptFrameworkRxJsModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs index ac045bc9a7..990b944a26 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptOperationModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs index 9aa9c455ff..0df0b01ae7 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptParameterModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptResponseModel.cs b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptResponseModel.cs index 84143a606c..cf91502802 100644 --- a/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptResponseModel.cs +++ b/src/NSwag.CodeGeneration.TypeScript/Models/TypeScriptResponseModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -28,8 +28,8 @@ public class TypeScriptResponseModel : ResponseModelBase /// The generator. /// The resolver. /// The settings. - public TypeScriptResponseModel(IOperationModel operationModel, OpenApiOperation operation, string statusCode, OpenApiResponse response, bool isPrimarySuccessResponse, - JsonSchema exceptionSchema, IClientGenerator generator, TypeResolverBase resolver, TypeScriptClientGeneratorSettings settings) + public TypeScriptResponseModel(IOperationModel operationModel, OpenApiOperation operation, string statusCode, OpenApiResponse response, bool isPrimarySuccessResponse, + JsonSchema exceptionSchema, IClientGenerator generator, TypeResolverBase resolver, TypeScriptClientGeneratorSettings settings) : base(operationModel, operation, statusCode, response, isPrimarySuccessResponse, exceptionSchema, resolver, settings.TypeScriptGeneratorSettings, generator) { _settings = settings; diff --git a/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj b/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj index c21e9d9362..f7a8d37cd1 100644 --- a/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj +++ b/src/NSwag.CodeGeneration.TypeScript/NSwag.CodeGeneration.TypeScript.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.CodeGeneration.TypeScript/PromiseType.cs b/src/NSwag.CodeGeneration.TypeScript/PromiseType.cs index ae86fada2c..18094a3f16 100644 --- a/src/NSwag.CodeGeneration.TypeScript/PromiseType.cs +++ b/src/NSwag.CodeGeneration.TypeScript/PromiseType.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs b/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs index 34b9bf2c23..0e60d64687 100644 --- a/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs +++ b/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGeneratorSettings.cs b/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGeneratorSettings.cs index b4dce880b0..6c7ae6b7f6 100644 --- a/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGeneratorSettings.cs +++ b/src/NSwag.CodeGeneration.TypeScript/TypeScriptClientGeneratorSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/TypeScriptTemplate.cs b/src/NSwag.CodeGeneration.TypeScript/TypeScriptTemplate.cs index 5abb48186a..cb0316e30c 100644 --- a/src/NSwag.CodeGeneration.TypeScript/TypeScriptTemplate.cs +++ b/src/NSwag.CodeGeneration.TypeScript/TypeScriptTemplate.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration.TypeScript/TypeScriptTypeNameGenerator.cs b/src/NSwag.CodeGeneration.TypeScript/TypeScriptTypeNameGenerator.cs index 8c1d5041a8..87330d2a92 100644 --- a/src/NSwag.CodeGeneration.TypeScript/TypeScriptTypeNameGenerator.cs +++ b/src/NSwag.CodeGeneration.TypeScript/TypeScriptTypeNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/ClientGeneratorBase.cs b/src/NSwag.CodeGeneration/ClientGeneratorBase.cs index a63fc89810..994181cbd3 100644 --- a/src/NSwag.CodeGeneration/ClientGeneratorBase.cs +++ b/src/NSwag.CodeGeneration/ClientGeneratorBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -35,7 +35,7 @@ protected ClientGeneratorBase(OpenApiDocument document, CodeGeneratorSettingsBas _document = document; Resolver = resolver; - settings.SchemaType = document.SchemaType; // enforce Swagger schema output + settings.SchemaType = document.SchemaType; // enforce Swagger schema output } /// Gets the base settings. @@ -76,14 +76,14 @@ public string GenerateFile(ClientGeneratorOutputType outputType) GenerateDtoTypes() : Enumerable.Empty(); - clientTypes = - outputType == ClientGeneratorOutputType.Full ? clientTypes : + clientTypes = + outputType == ClientGeneratorOutputType.Full ? clientTypes : outputType == ClientGeneratorOutputType.Implementation ? clientTypes.Where(t => t.Category != CodeArtifactCategory.Contract) : outputType == ClientGeneratorOutputType.Contracts ? clientTypes.Where(t => t.Category == CodeArtifactCategory.Contract) : Enumerable.Empty(); dtoTypes = - outputType == ClientGeneratorOutputType.Full || + outputType == ClientGeneratorOutputType.Full || outputType == ClientGeneratorOutputType.Contracts ? dtoTypes : Enumerable.Empty(); return GenerateFile(clientTypes, dtoTypes, outputType) diff --git a/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs b/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs index f5158ab337..e554f45ba9 100644 --- a/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs +++ b/src/NSwag.CodeGeneration/ClientGeneratorBaseSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/ClientGeneratorOutputType.cs b/src/NSwag.CodeGeneration/ClientGeneratorOutputType.cs index a406eb197d..b6075a8fea 100644 --- a/src/NSwag.CodeGeneration/ClientGeneratorOutputType.cs +++ b/src/NSwag.CodeGeneration/ClientGeneratorOutputType.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/ControllerGeneratorBaseSettings.cs b/src/NSwag.CodeGeneration/ControllerGeneratorBaseSettings.cs index 129570c655..438ba98bcb 100644 --- a/src/NSwag.CodeGeneration/ControllerGeneratorBaseSettings.cs +++ b/src/NSwag.CodeGeneration/ControllerGeneratorBaseSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs b/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs index 5bb233b4bd..e02a11cd0a 100644 --- a/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs +++ b/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs b/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs index d5f770c9bd..c78404de4e 100644 --- a/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs +++ b/src/NSwag.CodeGeneration/DefaultTemplateFactory.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -18,7 +18,7 @@ public class DefaultTemplateFactory : NJsonSchema.CodeGeneration.DefaultTemplate /// Initializes a new instance of the class. /// The settings. /// The assemblies. - public DefaultTemplateFactory(CodeGeneratorSettingsBase settings, Assembly[] assemblies) + public DefaultTemplateFactory(CodeGeneratorSettingsBase settings, Assembly[] assemblies) : base(settings, assemblies) { } diff --git a/src/NSwag.CodeGeneration/IClientGenerator.cs b/src/NSwag.CodeGeneration/IClientGenerator.cs index 99bd3713b7..a8d2336c70 100644 --- a/src/NSwag.CodeGeneration/IClientGenerator.cs +++ b/src/NSwag.CodeGeneration/IClientGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/IParameterNameGenerator.cs b/src/NSwag.CodeGeneration/IParameterNameGenerator.cs index 50d86edcc7..becd8839f8 100644 --- a/src/NSwag.CodeGeneration/IParameterNameGenerator.cs +++ b/src/NSwag.CodeGeneration/IParameterNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs b/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs index 4db5bc40a0..aa7c5d6d30 100644 --- a/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs +++ b/src/NSwag.CodeGeneration/JsonSchemaExtensions.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/Models/IOperationModel.cs b/src/NSwag.CodeGeneration/Models/IOperationModel.cs index c74925c930..ddcd4942cb 100644 --- a/src/NSwag.CodeGeneration/Models/IOperationModel.cs +++ b/src/NSwag.CodeGeneration/Models/IOperationModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/Models/OperationModelBase.cs b/src/NSwag.CodeGeneration/Models/OperationModelBase.cs index 724a2693ee..dd187ac0ed 100644 --- a/src/NSwag.CodeGeneration/Models/OperationModelBase.cs +++ b/src/NSwag.CodeGeneration/Models/OperationModelBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -260,7 +260,7 @@ public string Produces return "application/json"; } - return _operation.ActualProduces?.FirstOrDefault() ?? + return _operation.ActualProduces?.FirstOrDefault() ?? SuccessResponse?.Produces ?? "application/json"; } diff --git a/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs b/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs index 696690d198..bfe1c3229d 100644 --- a/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs +++ b/src/NSwag.CodeGeneration/Models/ParameterModelBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs b/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs index ed9dbc4201..c6a4ae4ce7 100644 --- a/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs +++ b/src/NSwag.CodeGeneration/Models/ResponseModelBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -62,8 +62,8 @@ protected ResponseModelBase(IOperationModel operationModel, public bool CheckChunkedStatusCode => IsFile && (StatusCode == "200" || StatusCode == "204"); /// Gets the type of the response. - public string Type => - _response.IsBinary(_operation) ? _generator.GetBinaryResponseTypeName() : + public string Type => + _response.IsBinary(_operation) ? _generator.GetBinaryResponseTypeName() : _generator.GetTypeName(ActualResponseSchema, IsNullable, "Response"); /// Gets a value indicating whether the response has a type (i.e. not void). diff --git a/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj b/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj index 7d679ce894..feea1700ae 100644 --- a/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj +++ b/src/NSwag.CodeGeneration/NSwag.CodeGeneration.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/IOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/IOperationNameGenerator.cs index d18c6bd3fa..9215281679 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/IOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/IOperationNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs index 217eddae84..f9df12a5e0 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndOperationIdGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs index 8be6136d63..0a74d51426 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromFirstTagAndPathSegmentsOperationNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs index d6ccd3373e..a7d3df5ae7 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromOperationIdOperationNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs index 63c59215d4..eac4d298df 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/MultipleClientsFromPathSegmentsOperationNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -44,8 +44,8 @@ public virtual string GetOperationName(OpenApiDocument document, string path, st var hasNameConflict = document.Paths .SelectMany(pair => pair.Value.Select(p => new { Path = pair.Key.Trim('/'), HttpMethod = p.Key, Operation = p.Value })) - .Where(op => - GetClientName(document, op.Path, op.HttpMethod, op.Operation) == GetClientName(document, path, httpMethod, operation) && + .Where(op => + GetClientName(document, op.Path, op.HttpMethod, op.Operation) == GetClientName(document, path, httpMethod, operation) && ConvertPathToName(op.Path) == operationName ).ToList() .Count > 1; diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromOperationIdOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromOperationIdOperationNameGenerator.cs index 372913c3af..72f7bc64c9 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromOperationIdOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromOperationIdOperationNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -10,7 +10,7 @@ namespace NSwag.CodeGeneration.OperationNameGenerators { /// Generates the client and operation name based on the Swagger operation ID. public class SingleClientFromOperationIdOperationNameGenerator : IOperationNameGenerator - { + { /// Gets a value indicating whether the generator supports multiple client classes. public bool SupportsMultipleClients { get; } = true; @@ -33,7 +33,7 @@ public virtual string GetClientName(OpenApiDocument document, string path, strin /// The client name. public virtual string GetOperationName(OpenApiDocument document, string path, string httpMethod, OpenApiOperation operation) { - return operation.OperationId; + return operation.OperationId; } } } \ No newline at end of file diff --git a/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs b/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs index c7373fb637..1081477ee8 100644 --- a/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs +++ b/src/NSwag.CodeGeneration/OperationNameGenerators/SingleClientFromPathSegmentsOperationNameGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -39,8 +39,8 @@ public virtual string GetOperationName(OpenApiDocument document, string path, st var operationName = ConvertPathToName(path); var hasNameConflict = document.Paths .SelectMany(pair => pair.Value.Select(p => new { Path = pair.Key.Trim('/'), HttpMethod = p.Key, Operation = p.Value })) - .Where(op => - GetClientName(document, op.Path, op.HttpMethod, op.Operation) == GetClientName(document, path, httpMethod, operation) && + .Where(op => + GetClientName(document, op.Path, op.HttpMethod, op.Operation) == GetClientName(document, path, httpMethod, operation) && ConvertPathToName(op.Path) == operationName ) .ToList().Count > 1; diff --git a/src/NSwag.Commands/Commands/CodeGeneration/CodeGeneratorCommandBase.cs b/src/NSwag.Commands/Commands/CodeGeneration/CodeGeneratorCommandBase.cs index d0f39056bc..42e003e7ee 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/CodeGeneratorCommandBase.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/CodeGeneratorCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs index 07884522b6..b86d8a0059 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs index bb0cef53c6..64c8e7be54 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToTypeScriptCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs index 0679429b82..36a777c201 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpCommandBase.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpCommandBase.cs index 4d8e82df55..276d71ac41 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpCommandBase.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs index 9b7fc9422b..eaa11973c8 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpControllerCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs index 397cde3d4b..28dad80585 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToTypeScriptClientCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/CodeGeneration/OperationGenerationMode.cs b/src/NSwag.Commands/Commands/CodeGeneration/OperationGenerationMode.cs index 280c061a7e..296aac9d1c 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/OperationGenerationMode.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/OperationGenerationMode.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs b/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs index 1f2d88b848..9c7c7a93e0 100644 --- a/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs +++ b/src/NSwag.Commands/Commands/Document/CreateDocumentCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -30,7 +30,7 @@ public async Task RunAsync(CommandLineProcessor processor, IConsoleHost host.WriteMessage("nswag.json already exists."); } - return null; + return null; } private async Task CreateDocumentAsync(string filePath) diff --git a/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs b/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs index 9125cd5c53..6914ceb972 100644 --- a/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs +++ b/src/NSwag.Commands/Commands/Document/ExecuteDocumentCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs index ccb2294126..06cdacaa6b 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs index c9a2349b47..4e3bef104f 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/AspNetCoreToOpenApiGeneratorCommandEntryPoint.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs index dc874eafb9..3a5552ed92 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/Exe.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs b/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs index c3d54252f4..f96222eda4 100644 --- a/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs +++ b/src/NSwag.Commands/Commands/Generation/AspNetCore/ProjectMetadata.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs b/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs index 90b13d172b..c84c0b2f22 100644 --- a/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/FromDocumentCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/ListTypesCommand.cs b/src/NSwag.Commands/Commands/Generation/ListTypesCommand.cs index 377cd81eb6..9ca1a81c48 100644 --- a/src/NSwag.Commands/Commands/Generation/ListTypesCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/ListTypesCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/ListWebApiControllersCommand.cs b/src/NSwag.Commands/Commands/Generation/ListWebApiControllersCommand.cs index c6c701ff0c..6fe3bcfdaa 100644 --- a/src/NSwag.Commands/Commands/Generation/ListWebApiControllersCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/ListWebApiControllersCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/OpenApiGeneratorCommandBase.cs b/src/NSwag.Commands/Commands/Generation/OpenApiGeneratorCommandBase.cs index 0fd9c61573..cec22f68a6 100644 --- a/src/NSwag.Commands/Commands/Generation/OpenApiGeneratorCommandBase.cs +++ b/src/NSwag.Commands/Commands/Generation/OpenApiGeneratorCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member diff --git a/src/NSwag.Commands/Commands/Generation/TypesToOpenApiCommand.cs b/src/NSwag.Commands/Commands/Generation/TypesToOpenApiCommand.cs index 29c4aec716..7b2739f993 100644 --- a/src/NSwag.Commands/Commands/Generation/TypesToOpenApiCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/TypesToOpenApiCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/Generation/WebApi/WebApiToOpenApiCommand.cs b/src/NSwag.Commands/Commands/Generation/WebApi/WebApiToOpenApiCommand.cs index 2726f676b1..917f46f2be 100644 --- a/src/NSwag.Commands/Commands/Generation/WebApi/WebApiToOpenApiCommand.cs +++ b/src/NSwag.Commands/Commands/Generation/WebApi/WebApiToOpenApiCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member diff --git a/src/NSwag.Commands/Commands/IOutputCommand.cs b/src/NSwag.Commands/Commands/IOutputCommand.cs index 153cdeab16..6909158f01 100644 --- a/src/NSwag.Commands/Commands/IOutputCommand.cs +++ b/src/NSwag.Commands/Commands/IOutputCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/InputOutputCommandBase.cs b/src/NSwag.Commands/Commands/InputOutputCommandBase.cs index 73b20afc34..3ffb551862 100644 --- a/src/NSwag.Commands/Commands/InputOutputCommandBase.cs +++ b/src/NSwag.Commands/Commands/InputOutputCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/IsolatedCommandBase.cs b/src/NSwag.Commands/Commands/IsolatedCommandBase.cs index 2e379f88eb..d6f5dc6c10 100644 --- a/src/NSwag.Commands/Commands/IsolatedCommandBase.cs +++ b/src/NSwag.Commands/Commands/IsolatedCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/IsolatedSwaggerOutputCommandBase.cs b/src/NSwag.Commands/Commands/IsolatedSwaggerOutputCommandBase.cs index ab6c1c54ef..fa47580726 100644 --- a/src/NSwag.Commands/Commands/IsolatedSwaggerOutputCommandBase.cs +++ b/src/NSwag.Commands/Commands/IsolatedSwaggerOutputCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member diff --git a/src/NSwag.Commands/Commands/OutputCommandBase.cs b/src/NSwag.Commands/Commands/OutputCommandBase.cs index efc81d9abd..2ee7a745af 100644 --- a/src/NSwag.Commands/Commands/OutputCommandBase.cs +++ b/src/NSwag.Commands/Commands/OutputCommandBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Commands/OutputCommandExtensions.cs b/src/NSwag.Commands/Commands/OutputCommandExtensions.cs index 5ffca1b4da..174957d5ce 100644 --- a/src/NSwag.Commands/Commands/OutputCommandExtensions.cs +++ b/src/NSwag.Commands/Commands/OutputCommandExtensions.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -48,7 +48,7 @@ public static async Task TryWriteFileOutputAsync(this IOutputCommand comma { host?.WriteMessage("Code has been successfully generated but not written to file (no change detected).\n"); } - return true; + return true; } return false; } diff --git a/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs b/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs index 9da3b26669..b486205e19 100644 --- a/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs +++ b/src/NSwag.Commands/Commands/Tooling/VersionCommand.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/NSwag.Commands.csproj b/src/NSwag.Commands/NSwag.Commands.csproj index 2147457f85..4caf61ad4e 100644 --- a/src/NSwag.Commands/NSwag.Commands.csproj +++ b/src/NSwag.Commands/NSwag.Commands.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.Commands/NSwagCommandProcessor.cs b/src/NSwag.Commands/NSwagCommandProcessor.cs index 7f7a8da37f..bb43e710cf 100644 --- a/src/NSwag.Commands/NSwagCommandProcessor.cs +++ b/src/NSwag.Commands/NSwagCommandProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/NSwagDocument.cs b/src/NSwag.Commands/NSwagDocument.cs index 977ccf9be0..cfa22795da 100644 --- a/src/NSwag.Commands/NSwagDocument.cs +++ b/src/NSwag.Commands/NSwagDocument.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/NSwagDocumentBase.cs b/src/NSwag.Commands/NSwagDocumentBase.cs index f77564eeef..1d862fcb8b 100644 --- a/src/NSwag.Commands/NSwagDocumentBase.cs +++ b/src/NSwag.Commands/NSwagDocumentBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs b/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs index b319e2e8c6..e634626ee7 100644 --- a/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs +++ b/src/NSwag.Commands/OpenApiDocumentExecutionResult.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/OperationGenerationModeConverter.cs b/src/NSwag.Commands/OperationGenerationModeConverter.cs index df08bbfa56..b6fc74bd71 100644 --- a/src/NSwag.Commands/OperationGenerationModeConverter.cs +++ b/src/NSwag.Commands/OperationGenerationModeConverter.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/Runtime.cs b/src/NSwag.Commands/Runtime.cs index f7544bf45f..90ee15c4cb 100644 --- a/src/NSwag.Commands/Runtime.cs +++ b/src/NSwag.Commands/Runtime.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Commands/RuntimeUtilities.cs b/src/NSwag.Commands/RuntimeUtilities.cs index e4f03eb17a..8111bae1b7 100644 --- a/src/NSwag.Commands/RuntimeUtilities.cs +++ b/src/NSwag.Commands/RuntimeUtilities.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Console.x86/NSwag.Console.x86.csproj b/src/NSwag.Console.x86/NSwag.Console.x86.csproj index 1f5ec7aaa5..548795eb87 100644 --- a/src/NSwag.Console.x86/NSwag.Console.x86.csproj +++ b/src/NSwag.Console.x86/NSwag.Console.x86.csproj @@ -8,7 +8,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org False Rico Suter diff --git a/src/NSwag.Console/NSwag.Console.csproj b/src/NSwag.Console/NSwag.Console.csproj index 7ef0f8d81e..63c10019dc 100644 --- a/src/NSwag.Console/NSwag.Console.csproj +++ b/src/NSwag.Console/NSwag.Console.csproj @@ -8,7 +8,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org False Rico Suter diff --git a/src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj b/src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj index 1b27604cc5..27e7ad8e37 100644 --- a/src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj +++ b/src/NSwag.ConsoleCore/NSwag.ConsoleCore.csproj @@ -6,7 +6,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True Rico Suter @@ -15,7 +15,7 @@ dotnet-nswag NSwag.ConsoleCore - + @@ -41,7 +41,7 @@ - + diff --git a/src/NSwag.Core.Tests/DocumentLoadingTests.cs b/src/NSwag.Core.Tests/DocumentLoadingTests.cs index ac8d12a643..655996da99 100644 --- a/src/NSwag.Core.Tests/DocumentLoadingTests.cs +++ b/src/NSwag.Core.Tests/DocumentLoadingTests.cs @@ -59,7 +59,7 @@ public async Task When_json_has_extension_data_then_it_is_loaded() [Fact] public async Task When_locale_is_not_english_then_types_are_correctly_serialized() { - // https://github.com/NSwag/NSwag/issues/518 + // https://github.com/RicoSuter/NSwag/issues/518 //// Arrange CultureInfo ci = new CultureInfo("tr-TR"); @@ -78,7 +78,7 @@ public async Task When_locale_is_not_english_then_types_are_correctly_serialized Assert.Equal(JsonObjectType.Integer, document.Definitions["Pet"].Properties["id"].Type); } - private string _sampleServiceCode = + private string _sampleServiceCode = @"{ ""swagger"": ""2.0"", ""info"": { diff --git a/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj b/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj index 68e049d60d..376f92a9c1 100644 --- a/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj +++ b/src/NSwag.Core.Yaml/NSwag.Core.Yaml.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True Rico Suter diff --git a/src/NSwag.Core.Yaml/OpenApiYamlDocument.cs b/src/NSwag.Core.Yaml/OpenApiYamlDocument.cs index a19c3e0b35..86a5dffffb 100644 --- a/src/NSwag.Core.Yaml/OpenApiYamlDocument.cs +++ b/src/NSwag.Core.Yaml/OpenApiYamlDocument.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/HttpUtilities.cs b/src/NSwag.Core/HttpUtilities.cs index a0ee10c0c6..2bb356ee4a 100644 --- a/src/NSwag.Core/HttpUtilities.cs +++ b/src/NSwag.Core/HttpUtilities.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/JsonExpectedSchema.cs b/src/NSwag.Core/JsonExpectedSchema.cs index aa9026863b..d6f980d086 100644 --- a/src/NSwag.Core/JsonExpectedSchema.cs +++ b/src/NSwag.Core/JsonExpectedSchema.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/NSwag.Core.csproj b/src/NSwag.Core/NSwag.Core.csproj index a5cf751892..2179233fcd 100644 --- a/src/NSwag.Core/NSwag.Core.csproj +++ b/src/NSwag.Core/NSwag.Core.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.Core/OpenApiCallback.cs b/src/NSwag.Core/OpenApiCallback.cs index 7e126edfca..d56c00ad2e 100644 --- a/src/NSwag.Core/OpenApiCallback.cs +++ b/src/NSwag.Core/OpenApiCallback.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiComponents.cs b/src/NSwag.Core/OpenApiComponents.cs index f6950ced42..fb832db975 100644 --- a/src/NSwag.Core/OpenApiComponents.cs +++ b/src/NSwag.Core/OpenApiComponents.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiContact.cs b/src/NSwag.Core/OpenApiContact.cs index 5a2fe5f212..54aa2e9478 100644 --- a/src/NSwag.Core/OpenApiContact.cs +++ b/src/NSwag.Core/OpenApiContact.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiDocument.Serialization.cs b/src/NSwag.Core/OpenApiDocument.Serialization.cs index 8f39ac284b..9214e061df 100644 --- a/src/NSwag.Core/OpenApiDocument.Serialization.cs +++ b/src/NSwag.Core/OpenApiDocument.Serialization.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiDocument.cs b/src/NSwag.Core/OpenApiDocument.cs index 52ab405450..c82dd0ef10 100644 --- a/src/NSwag.Core/OpenApiDocument.cs +++ b/src/NSwag.Core/OpenApiDocument.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -254,8 +254,8 @@ public void GenerateOperationIds() { // Append "All" if possible var arrayResponseOperation = operations.FirstOrDefault( - o => o.Operation.ActualResponses.Any(r => - HttpUtilities.IsSuccessStatusCode(r.Key) && + o => o.Operation.ActualResponses.Any(r => + HttpUtilities.IsSuccessStatusCode(r.Key) && r.Value.Schema?.ActualSchema.Type == JsonObjectType.Array)); if (arrayResponseOperation != null) diff --git a/src/NSwag.Core/OpenApiEncoding.cs b/src/NSwag.Core/OpenApiEncoding.cs index 2db9af7167..7a90322cf0 100644 --- a/src/NSwag.Core/OpenApiEncoding.cs +++ b/src/NSwag.Core/OpenApiEncoding.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiExample.cs b/src/NSwag.Core/OpenApiExample.cs index 8bf5355deb..12409696d8 100644 --- a/src/NSwag.Core/OpenApiExample.cs +++ b/src/NSwag.Core/OpenApiExample.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiExternalDocumentation.cs b/src/NSwag.Core/OpenApiExternalDocumentation.cs index e948d08fd1..d6c12e8a68 100644 --- a/src/NSwag.Core/OpenApiExternalDocumentation.cs +++ b/src/NSwag.Core/OpenApiExternalDocumentation.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiHeaders.cs b/src/NSwag.Core/OpenApiHeaders.cs index 4c44252a09..36766fdb28 100644 --- a/src/NSwag.Core/OpenApiHeaders.cs +++ b/src/NSwag.Core/OpenApiHeaders.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiInfo.cs b/src/NSwag.Core/OpenApiInfo.cs index 5b3c8df5f3..b04f3fec91 100644 --- a/src/NSwag.Core/OpenApiInfo.cs +++ b/src/NSwag.Core/OpenApiInfo.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiLicense.cs b/src/NSwag.Core/OpenApiLicense.cs index be68794787..6691df40d4 100644 --- a/src/NSwag.Core/OpenApiLicense.cs +++ b/src/NSwag.Core/OpenApiLicense.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiLink.cs b/src/NSwag.Core/OpenApiLink.cs index bd8fb6d0c7..3d363bb410 100644 --- a/src/NSwag.Core/OpenApiLink.cs +++ b/src/NSwag.Core/OpenApiLink.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiMediaType.cs b/src/NSwag.Core/OpenApiMediaType.cs index 8475396ec4..bf16abfb08 100644 --- a/src/NSwag.Core/OpenApiMediaType.cs +++ b/src/NSwag.Core/OpenApiMediaType.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiOAuth2Flow.cs b/src/NSwag.Core/OpenApiOAuth2Flow.cs index 4dfc90c84e..edf7b0ad9d 100644 --- a/src/NSwag.Core/OpenApiOAuth2Flow.cs +++ b/src/NSwag.Core/OpenApiOAuth2Flow.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiOAuthFlow.cs b/src/NSwag.Core/OpenApiOAuthFlow.cs index c488eee29b..26e8bda6b1 100644 --- a/src/NSwag.Core/OpenApiOAuthFlow.cs +++ b/src/NSwag.Core/OpenApiOAuthFlow.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiOAuthFlows.cs b/src/NSwag.Core/OpenApiOAuthFlows.cs index 748d95daa5..0cad85e3fd 100644 --- a/src/NSwag.Core/OpenApiOAuthFlows.cs +++ b/src/NSwag.Core/OpenApiOAuthFlows.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiOperation.cs b/src/NSwag.Core/OpenApiOperation.cs index e21fb9c02a..d240d174bd 100644 --- a/src/NSwag.Core/OpenApiOperation.cs +++ b/src/NSwag.Core/OpenApiOperation.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiOperationDescription.cs b/src/NSwag.Core/OpenApiOperationDescription.cs index fa6e820847..27fa19cdf2 100644 --- a/src/NSwag.Core/OpenApiOperationDescription.cs +++ b/src/NSwag.Core/OpenApiOperationDescription.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiOperationMethod.cs b/src/NSwag.Core/OpenApiOperationMethod.cs index f755f42977..3cdb5fef67 100644 --- a/src/NSwag.Core/OpenApiOperationMethod.cs +++ b/src/NSwag.Core/OpenApiOperationMethod.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiParameter.cs b/src/NSwag.Core/OpenApiParameter.cs index f63ff3fcd1..8000bd6eb9 100644 --- a/src/NSwag.Core/OpenApiParameter.cs +++ b/src/NSwag.Core/OpenApiParameter.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiParameterCollectionFormat.cs b/src/NSwag.Core/OpenApiParameterCollectionFormat.cs index f984e3bb5e..2bba2271df 100644 --- a/src/NSwag.Core/OpenApiParameterCollectionFormat.cs +++ b/src/NSwag.Core/OpenApiParameterCollectionFormat.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiParameterKind.cs b/src/NSwag.Core/OpenApiParameterKind.cs index eb88f19eae..f4e3c69cc9 100644 --- a/src/NSwag.Core/OpenApiParameterKind.cs +++ b/src/NSwag.Core/OpenApiParameterKind.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiPathItem.cs b/src/NSwag.Core/OpenApiPathItem.cs index a44ceef558..7525d8c8cc 100644 --- a/src/NSwag.Core/OpenApiPathItem.cs +++ b/src/NSwag.Core/OpenApiPathItem.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiRequestBody.cs b/src/NSwag.Core/OpenApiRequestBody.cs index c6e85b83dc..27cf0d34a3 100644 --- a/src/NSwag.Core/OpenApiRequestBody.cs +++ b/src/NSwag.Core/OpenApiRequestBody.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiResponse.cs b/src/NSwag.Core/OpenApiResponse.cs index 49d4a7986c..b8f5326c21 100644 --- a/src/NSwag.Core/OpenApiResponse.cs +++ b/src/NSwag.Core/OpenApiResponse.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -122,7 +122,7 @@ public bool IsBinary(OpenApiOperation operation) if (ActualResponse.Content.Any()) { var contentIsBinary = - ActualResponse.Content.All(c => c.Value.Schema?.ActualSchema.IsAnyType != false || + ActualResponse.Content.All(c => c.Value.Schema?.ActualSchema.IsAnyType != false || c.Value.Schema?.ActualSchema.IsBinary != false) && // is binary only if there is no JSON schema defined !ActualResponse.Content.Keys.Any(p => p.Contains("*/*")) && // supports json !ActualResponse.Content.Keys.Any(p => p.Contains("application/json")) && @@ -139,7 +139,7 @@ public bool IsBinary(OpenApiOperation operation) if (actualProduces?.Any() == true) { var producesIsBinary = - (Schema?.ActualSchema.IsAnyType != false || + (Schema?.ActualSchema.IsAnyType != false || Schema?.ActualSchema.IsBinary != false) && // is binary only if there is no JSON schema defined actualProduces?.Any(p => p.Contains("*/*")) != true && // supports json actualProduces?.Any(p => p.Contains("application/json")) != true && diff --git a/src/NSwag.Core/OpenApiSchema.cs b/src/NSwag.Core/OpenApiSchema.cs index 123340d211..a5c75a218e 100644 --- a/src/NSwag.Core/OpenApiSchema.cs +++ b/src/NSwag.Core/OpenApiSchema.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiSchemaResolver.cs b/src/NSwag.Core/OpenApiSchemaResolver.cs index 37fd9fdc4f..4455fc5db8 100644 --- a/src/NSwag.Core/OpenApiSchemaResolver.cs +++ b/src/NSwag.Core/OpenApiSchemaResolver.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiSecurityApiKeyLocation.cs b/src/NSwag.Core/OpenApiSecurityApiKeyLocation.cs index b09bd239b1..8a1a10988d 100644 --- a/src/NSwag.Core/OpenApiSecurityApiKeyLocation.cs +++ b/src/NSwag.Core/OpenApiSecurityApiKeyLocation.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiSecurityRequirement.cs b/src/NSwag.Core/OpenApiSecurityRequirement.cs index 7b27297e50..2409e64f2e 100644 --- a/src/NSwag.Core/OpenApiSecurityRequirement.cs +++ b/src/NSwag.Core/OpenApiSecurityRequirement.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiSecurityScheme.cs b/src/NSwag.Core/OpenApiSecurityScheme.cs index 012fd04345..416d002086 100644 --- a/src/NSwag.Core/OpenApiSecurityScheme.cs +++ b/src/NSwag.Core/OpenApiSecurityScheme.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -105,7 +105,7 @@ internal OpenApiSecuritySchemeType TypeRaw } } - // Swagger only: + // Swagger only: /// Gets or sets the used by the OAuth2 security scheme (Swagger only). [JsonProperty(PropertyName = "flow", DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)] diff --git a/src/NSwag.Core/OpenApiSecuritySchemeType.cs b/src/NSwag.Core/OpenApiSecuritySchemeType.cs index 35aaabd5f3..f47f3adf47 100644 --- a/src/NSwag.Core/OpenApiSecuritySchemeType.cs +++ b/src/NSwag.Core/OpenApiSecuritySchemeType.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiServer.cs b/src/NSwag.Core/OpenApiServer.cs index c1076ddee3..ca29dc6bc1 100644 --- a/src/NSwag.Core/OpenApiServer.cs +++ b/src/NSwag.Core/OpenApiServer.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiServerVariable.cs b/src/NSwag.Core/OpenApiServerVariable.cs index 535e81e068..31b8a73d1a 100644 --- a/src/NSwag.Core/OpenApiServerVariable.cs +++ b/src/NSwag.Core/OpenApiServerVariable.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Core/OpenApiTag.cs b/src/NSwag.Core/OpenApiTag.cs index 70ed3be2b4..fed037f497 100644 --- a/src/NSwag.Core/OpenApiTag.cs +++ b/src/NSwag.Core/OpenApiTag.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore.Tests/AspNetCoreToSwaggerGenerationTests.cs b/src/NSwag.Generation.AspNetCore.Tests/AspNetCoreToSwaggerGenerationTests.cs index 564ee6fb4e..12c7ac7bfb 100644 --- a/src/NSwag.Generation.AspNetCore.Tests/AspNetCoreToSwaggerGenerationTests.cs +++ b/src/NSwag.Generation.AspNetCore.Tests/AspNetCoreToSwaggerGenerationTests.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore.Tests/Processors/OperationResponseProcessorTest.cs b/src/NSwag.Generation.AspNetCore.Tests/Processors/OperationResponseProcessorTest.cs index 934737afac..e875d42c4f 100644 --- a/src/NSwag.Generation.AspNetCore.Tests/Processors/OperationResponseProcessorTest.cs +++ b/src/NSwag.Generation.AspNetCore.Tests/Processors/OperationResponseProcessorTest.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs index f33e1fea97..82fa6f5f41 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs index 7ec01125df..327604e37d 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOpenApiDocumentGeneratorSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs b/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs index b39086fe67..3fd302ff7c 100644 --- a/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs +++ b/src/NSwag.Generation.AspNetCore/AspNetCoreOperationProcessorContext.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -31,15 +31,15 @@ public class AspNetCoreOperationProcessorContext : OperationProcessorContext /// All operation descriptions. /// The schema generator. public AspNetCoreOperationProcessorContext( - OpenApiDocument document, - OpenApiOperationDescription operationDescription, - Type controllerType, - MethodInfo methodInfo, - OpenApiDocumentGenerator swaggerGenerator, - JsonSchemaGenerator schemaGenerator, - JsonSchemaResolver schemaResolver, - OpenApiDocumentGeneratorSettings settings, - IList allOperationDescriptions) + OpenApiDocument document, + OpenApiOperationDescription operationDescription, + Type controllerType, + MethodInfo methodInfo, + OpenApiDocumentGenerator swaggerGenerator, + JsonSchemaGenerator schemaGenerator, + JsonSchemaResolver schemaResolver, + OpenApiDocumentGeneratorSettings settings, + IList allOperationDescriptions) : base(document, operationDescription, controllerType, methodInfo, swaggerGenerator, schemaGenerator, schemaResolver, settings, allOperationDescriptions) { } diff --git a/src/NSwag.Generation.AspNetCore/NSwag.Generation.AspNetCore.csproj b/src/NSwag.Generation.AspNetCore/NSwag.Generation.AspNetCore.csproj index 94a00fb971..fb7ec8b61e 100644 --- a/src/NSwag.Generation.AspNetCore/NSwag.Generation.AspNetCore.csproj +++ b/src/NSwag.Generation.AspNetCore/NSwag.Generation.AspNetCore.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation AspNetCore Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs index 214da92cca..b433f9d42f 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationSecurityScopeProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs index abd97478fb..d6f4f1dc0f 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/AspNetCoreOperationTagsProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs index cd391e0a79..508165757b 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/OperationParameterProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs b/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs index fb66c78d1a..c0e0faf778 100644 --- a/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs +++ b/src/NSwag.Generation.AspNetCore/Processors/OperationResponseProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.WebApi.Tests/Attributes/ComplexParametersTests.cs b/src/NSwag.Generation.WebApi.Tests/Attributes/ComplexParametersTests.cs index d0115a74b8..85a3355edc 100644 --- a/src/NSwag.Generation.WebApi.Tests/Attributes/ComplexParametersTests.cs +++ b/src/NSwag.Generation.WebApi.Tests/Attributes/ComplexParametersTests.cs @@ -62,7 +62,7 @@ public class WillReadBodyAttribute : Attribute } /// - /// Since this class has a [WillReadBody] attribute with no WillReadBody property, + /// Since this class has a [WillReadBody] attribute with no WillReadBody property, /// OperationParameterProcessor should treat it as a body param. /// [ComplexParametersTests.WillReadBody] @@ -329,7 +329,7 @@ public class ComplexGetRequest public async Task When_complex_parameter_contains_property_with_FromRoute_attribute_then_it_is_generated_as_path_parameter() { // FromRouteAttribute is only available in ASP.NET Core - // Issue: https://github.com/NSwag/NSwag/issues/513 + // Issue: https://github.com/RicoSuter/NSwag/issues/513 //// Arrange var generator = new WebApiOpenApiDocumentGenerator(new WebApiOpenApiDocumentGeneratorSettings diff --git a/src/NSwag.Generation.WebApi.Tests/Attributes/RouteInheritanceTests.cs b/src/NSwag.Generation.WebApi.Tests/Attributes/RouteInheritanceTests.cs index cc923aec71..2be6f054dd 100644 --- a/src/NSwag.Generation.WebApi.Tests/Attributes/RouteInheritanceTests.cs +++ b/src/NSwag.Generation.WebApi.Tests/Attributes/RouteInheritanceTests.cs @@ -5,7 +5,7 @@ namespace NSwag.Generation.WebApi.Tests.Attributes { - // See https://github.com/NSwag/NSwag/issues/48 + // See https://github.com/RicoSuter/NSwag/issues/48 [TestClass] public class RouteInheritanceTests diff --git a/src/NSwag.Generation.WebApi.Tests/Attributes/RouteTests.cs b/src/NSwag.Generation.WebApi.Tests/Attributes/RouteTests.cs index 2af4bc0097..009da03041 100644 --- a/src/NSwag.Generation.WebApi.Tests/Attributes/RouteTests.cs +++ b/src/NSwag.Generation.WebApi.Tests/Attributes/RouteTests.cs @@ -10,7 +10,7 @@ namespace NSwag.Generation.WebApi.Tests.Attributes [TestClass] public class RouteTests { - // https://github.com/NSwag/NSwag/issues/510 + // https://github.com/RicoSuter/NSwag/issues/510 public abstract class RegionalItemController : ApiController { diff --git a/src/NSwag.Generation.WebApi.Tests/Integration/SwashbuckleAnnotationsTests.cs b/src/NSwag.Generation.WebApi.Tests/Integration/SwashbuckleAnnotationsTests.cs index d3653f0bc4..5918816ef3 100644 --- a/src/NSwag.Generation.WebApi.Tests/Integration/SwashbuckleAnnotationsTests.cs +++ b/src/NSwag.Generation.WebApi.Tests/Integration/SwashbuckleAnnotationsTests.cs @@ -12,7 +12,7 @@ namespace NSwag.Generation.WebApi.Tests.Integration [TestClass] public class SwashbuckleAnnotationsTests { - // https://github.com/NSwag/NSwag/issues/494 + // https://github.com/RicoSuter/NSwag/issues/494 public class JsonDate { diff --git a/src/NSwag.Generation.WebApi.Tests/RouteTests.cs b/src/NSwag.Generation.WebApi.Tests/RouteTests.cs index 3a6a94251a..5bf5769be6 100644 --- a/src/NSwag.Generation.WebApi.Tests/RouteTests.cs +++ b/src/NSwag.Generation.WebApi.Tests/RouteTests.cs @@ -10,7 +10,7 @@ namespace NSwag.Generation.WebApi.Tests [TestClass] public class RouteTests { - // From https://github.com/NSwag/NSwag/issues/664 + // From https://github.com/RicoSuter/NSwag/issues/664 public class ProductPagedResult { diff --git a/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs b/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs index 8d2cf9c3e5..149dfaf94f 100644 --- a/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs +++ b/src/NSwag.Generation.WebApi/Infrastructure/RouteAttributeFacade.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs b/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs index 29d1876fa3..faadfb0c51 100644 --- a/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs +++ b/src/NSwag.Generation.WebApi/Infrastructure/RoutePrefixAttributeFacade.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.WebApi/NSwag.Generation.WebApi.csproj b/src/NSwag.Generation.WebApi/NSwag.Generation.WebApi.csproj index 31b3f13b23..ba53b47069 100644 --- a/src/NSwag.Generation.WebApi/NSwag.Generation.WebApi.csproj +++ b/src/NSwag.Generation.WebApi/NSwag.Generation.WebApi.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs b/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs index 8b05b9da9f..c8deb08438 100644 --- a/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs +++ b/src/NSwag.Generation.WebApi/Processors/OperationConsumesProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs b/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs index e7cc1efe04..43e6814f9e 100644 --- a/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs +++ b/src/NSwag.Generation.WebApi/Processors/OperationParameterProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -371,8 +371,8 @@ private OpenApiParameter AddPrimitiveParametersFromUri( { foreach (var contextualProperty in contextualParameter.Type.GetContextualProperties()) { - if (contextualProperty.ContextAttributes.Select(a => a.GetType()).All(a => - !a.IsAssignableToTypeName("SwaggerIgnoreAttribute", TypeNameStyle.Name) && + if (contextualProperty.ContextAttributes.Select(a => a.GetType()).All(a => + !a.IsAssignableToTypeName("SwaggerIgnoreAttribute", TypeNameStyle.Name) && !a.IsAssignableToTypeName("JsonIgnoreAttribute", TypeNameStyle.Name))) { var fromQueryAttribute = contextualProperty.ContextAttributes.SingleOrDefault(a => a.GetType().Name == "FromQueryAttribute"); diff --git a/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs b/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs index 974b9f94e0..17e75dca53 100644 --- a/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs +++ b/src/NSwag.Generation.WebApi/Processors/OperationResponseProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs index 0c8ff085b4..719aed2109 100644 --- a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs index 92f53bc961..725c68bc27 100644 --- a/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs +++ b/src/NSwag.Generation.WebApi/WebApiOpenApiDocumentGeneratorSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/IOpenApiDocumentGenerator.cs b/src/NSwag.Generation/IOpenApiDocumentGenerator.cs index 530bb71e45..f0f75abcfc 100644 --- a/src/NSwag.Generation/IOpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation/IOpenApiDocumentGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/NSwag.Generation.csproj b/src/NSwag.Generation/NSwag.Generation.csproj index 35327d4afb..8a69924229 100644 --- a/src/NSwag.Generation/NSwag.Generation.csproj +++ b/src/NSwag.Generation/NSwag.Generation.csproj @@ -5,7 +5,7 @@ 13.0.3 Swagger Documentation WebApi AspNet TypeScript CodeGen Copyright © Rico Suter, 2019 - https://github.com/NSwag/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md http://NSwag.org True True diff --git a/src/NSwag.Generation/OpenApiDocumentGenerator.cs b/src/NSwag.Generation/OpenApiDocumentGenerator.cs index 2e9880c81a..7894bcfeff 100644 --- a/src/NSwag.Generation/OpenApiDocumentGenerator.cs +++ b/src/NSwag.Generation/OpenApiDocumentGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs b/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs index 8a2dbdc524..5dfccce978 100644 --- a/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs +++ b/src/NSwag.Generation/OpenApiDocumentGeneratorSettings.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/OpenApiSchemaGenerator.cs b/src/NSwag.Generation/OpenApiSchemaGenerator.cs index 0e074dad20..482e9b8b1a 100644 --- a/src/NSwag.Generation/OpenApiSchemaGenerator.cs +++ b/src/NSwag.Generation/OpenApiSchemaGenerator.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/rsuter/NJsonSchema/blob/master/LICENSE.md +// https://github.com/RicoSuter/NJsonSchema/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs b/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs index 9396447cc8..4c4984b14e 100644 --- a/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs +++ b/src/NSwag.Generation/Processors/ActionDocumentProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/ApiVersionProcessor.cs b/src/NSwag.Generation/Processors/ApiVersionProcessor.cs index 14fbf2a9e7..f917259d95 100644 --- a/src/NSwag.Generation/Processors/ApiVersionProcessor.cs +++ b/src/NSwag.Generation/Processors/ApiVersionProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs b/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs index 6e0f6dc6f7..c9a09e340b 100644 --- a/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs +++ b/src/NSwag.Generation/Processors/Collections/DocumentProcessorCollection.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs b/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs index 45c60a861f..1eec9dc36b 100644 --- a/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs +++ b/src/NSwag.Generation/Processors/Collections/OperationProcessorCollection.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs b/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs index f1403b27cb..5220941ca5 100644 --- a/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs +++ b/src/NSwag.Generation/Processors/Contexts/DocumentProcessorContext.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs b/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs index 37e08b5a5d..fc9d964a61 100644 --- a/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs +++ b/src/NSwag.Generation/Processors/Contexts/OperationProcessorContext.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs b/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs index 97bdbf8166..3759998086 100644 --- a/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs +++ b/src/NSwag.Generation/Processors/DocumentExtensionDataProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs b/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs index f3c4f44339..90bdc979c9 100644 --- a/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs +++ b/src/NSwag.Generation/Processors/DocumentTagsProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/IDocumentProcessor.cs b/src/NSwag.Generation/Processors/IDocumentProcessor.cs index 1616249c1f..7e15d9e4d8 100644 --- a/src/NSwag.Generation/Processors/IDocumentProcessor.cs +++ b/src/NSwag.Generation/Processors/IDocumentProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/IOperationProcessor.cs b/src/NSwag.Generation/Processors/IOperationProcessor.cs index 22a14cad07..58188144e7 100644 --- a/src/NSwag.Generation/Processors/IOperationProcessor.cs +++ b/src/NSwag.Generation/Processors/IOperationProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs b/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs index f183bcb92c..fc3fd7fbc2 100644 --- a/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationExtensionDataProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/OperationProcessor.cs b/src/NSwag.Generation/Processors/OperationProcessor.cs index 3a5e0d0573..c5d08b24e3 100644 --- a/src/NSwag.Generation/Processors/OperationProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/OperationResponseDescription.cs b/src/NSwag.Generation/Processors/OperationResponseDescription.cs index 55c41cd284..03acdc03ae 100644 --- a/src/NSwag.Generation/Processors/OperationResponseDescription.cs +++ b/src/NSwag.Generation/Processors/OperationResponseDescription.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs b/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs index 47509641ee..d0031464ea 100644 --- a/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs +++ b/src/NSwag.Generation/Processors/OperationResponseProcessorBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -105,7 +105,7 @@ private IEnumerable GetOperationResponseDescriptio dynamic responseTypeAttribute = attribute; var attributeType = attribute.GetType(); - var isProducesAttributeWithNoType = // ignore ProducesAttribute if it has no type, https://github.com/RSuter/NSwag/issues/1201 + var isProducesAttributeWithNoType = // ignore ProducesAttribute if it has no type, https://github.com/RicoSuter/NSwag/issues/1201 attributeType.Name == "ProducesAttribute" && attribute.HasProperty("Type") && responseTypeAttribute.Type == null; if (!isProducesAttributeWithNoType) diff --git a/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs b/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs index c000bf90cd..45c7148766 100644 --- a/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationSummaryAndDescriptionProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -44,7 +44,7 @@ public bool Process(OperationProcessorContext context) context.OperationDescription.Operation.Description = remarks; } - return true; + return true; } } } \ No newline at end of file diff --git a/src/NSwag.Generation/Processors/OperationTagsProcessor.cs b/src/NSwag.Generation/Processors/OperationTagsProcessor.cs index 4a31881fa0..7071bf7958 100644 --- a/src/NSwag.Generation/Processors/OperationTagsProcessor.cs +++ b/src/NSwag.Generation/Processors/OperationTagsProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs b/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs index 81a9fd4c19..667d9efe80 100644 --- a/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs +++ b/src/NSwag.Generation/Processors/Security/OperationSecurityScopeProcessor.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs b/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs index 5cc5105895..7d9ce9a27f 100644 --- a/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs +++ b/src/NSwag.Generation/Processors/Security/SecurityDefinitionAppender.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwag.Integration.TypeScriptWeb/package.json b/src/NSwag.Integration.TypeScriptWeb/package.json index e5c5dc8365..6a1a7b9094 100644 --- a/src/NSwag.Integration.TypeScriptWeb/package.json +++ b/src/NSwag.Integration.TypeScriptWeb/package.json @@ -3,7 +3,7 @@ "version": "", "repository": { "type": "git", - "url": "git+https://github.com/NSwag/NSwag.git" + "url": "git+https://github.com/RicoSuter/NSwag.git" }, "description": "Test generated TypeScript compilation", "license": "MIT", diff --git a/src/NSwag.Integration.WebAPI/Controllers/PersonsController.cs b/src/NSwag.Integration.WebAPI/Controllers/PersonsController.cs index 07ef0369bf..a4b31f92b9 100644 --- a/src/NSwag.Integration.WebAPI/Controllers/PersonsController.cs +++ b/src/NSwag.Integration.WebAPI/Controllers/PersonsController.cs @@ -100,7 +100,7 @@ public void Delete(Guid id) [HttpPost, Route("upload")] public async Task Upload([FromBody] Stream data) { - // TODO: Implement stream handler: https://github.com/RSuter/NJsonSchema/issues/445 + // TODO: Implement stream handler: https://github.com/RicoSuter/NJsonSchema/issues/445 return await this.Request.Content.ReadAsByteArrayAsync(); //using (var ms = new MemoryStream()) //{ diff --git a/src/NSwag.MSBuild/NSwag.MSBuild.nuspec b/src/NSwag.MSBuild/NSwag.MSBuild.nuspec index 9dcf55c2bb..bdde2ed224 100644 --- a/src/NSwag.MSBuild/NSwag.MSBuild.nuspec +++ b/src/NSwag.MSBuild/NSwag.MSBuild.nuspec @@ -6,8 +6,8 @@ Rico Suter Rico Suter false - https://github.com/NSwag/NSwag/blob/master/LICENSE.md - https://github.com/NSwag/NSwag + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png NSwag: The Swagger API toolchain for .NET and TypeScript Swagger Documentation WebApi AspNet TypeScript CodeGen @@ -20,7 +20,7 @@ - + diff --git a/src/NSwag.Npm/README.md b/src/NSwag.Npm/README.md index e6da5ae793..b41a4d0b5f 100644 --- a/src/NSwag.Npm/README.md +++ b/src/NSwag.Npm/README.md @@ -1,29 +1,29 @@ -NSwag is a Swagger 2.0 API (OpenAPI) toolchain for .NET, Web API, TypeScript (jQuery, AngularJS, Angular 2+, Aurelia, KnockoutJS, and more) and other platforms, written in C#. The Swagger specification uses JSON and JSON Schema to describe a RESTful web API. The NSwag project provides tools to generate Swagger specifications from existing ASP.NET Web API controllers and client code from these Swagger specifications. +NSwag is a Swagger 2.0 API (OpenAPI) toolchain for .NET, Web API, TypeScript (jQuery, AngularJS, Angular 2+, Aurelia, KnockoutJS, and more) and other platforms, written in C#. The Swagger specification uses JSON and JSON Schema to describe a RESTful web API. The NSwag project provides tools to generate Swagger specifications from existing ASP.NET Web API controllers and client code from these Swagger specifications. **This NPM module requires .NET 4.6.1+ or .NET Core 1.0/1.1/2.0/2.1/2.2 to be installed on your system!** - [More information about NSwag](http://nswag.org) -- [More information about the available commands](https://github.com/NSwag/NSwag/wiki/CommandLine) +- [More information about the available commands](https://github.com/RicoSuter/NSwag/wiki/CommandLine) ## Usage ### Global installation -Install the package globally: +Install the package globally: npm install nswag -g -Show available commands: +Show available commands: nswag help ### Project installation - -Install the package for the current project: + +Install the package for the current project: npm install nswag --save-dev - -Show available commands: + +Show available commands: "node_modules/.bin/nswag" help @@ -33,11 +33,11 @@ The full .NET Framework in x64 mode is preferred as execution environment. If yo nswag run version /runtime:WinX86 -Add the switch `/runtime:NetCore*` to the command to execute one of the .NET Core binaries (automatically detects whether .NET Core 1.0 or 1.1 is installed): +Add the switch `/runtime:NetCore*` to the command to execute one of the .NET Core binaries (automatically detects whether .NET Core 1.0 or 1.1 is installed): nswag run version /runtime:NetCore - -To specify what .NET Core binaries to execute, either use + +To specify what .NET Core binaries to execute, either use nswag run version /runtime:NetCore10 @@ -56,22 +56,22 @@ or or nswag run version /runtime:NetCore22 - + ## Development -Run the following command to compile and copy the current NSwag console binaries into the NPM module directory `binaries` directory: +Run the following command to compile and copy the current NSwag console binaries into the NPM module directory `binaries` directory: build/01_Npm_Build.bat -To run the NodeJS binary locally: +To run the NodeJS binary locally: cd "src/NSwag.Npm" node "bin/nswag" version -The JavaScript command line tool can be found here: +The JavaScript command line tool can be found here: src/NSwag.Npm/bin/nswag.json - -To publish the package (login required): + +To publish the package (login required): build/02_Npm_Publish.bat diff --git a/src/NSwag.Npm/package.json b/src/NSwag.Npm/package.json index 80a0314827..7d860530fa 100644 --- a/src/NSwag.Npm/package.json +++ b/src/NSwag.Npm/package.json @@ -4,7 +4,7 @@ "optionalDependencies": {}, "repository": { "type": "git", - "url": "git+https://github.com/NSwag/NSwag.git" + "url": "git+https://github.com/RicoSuter/NSwag.git" }, "scripts": {}, "author": { @@ -16,7 +16,7 @@ "nswag": "bin/nswag.js" }, "bugs": { - "url": "https://github.com/NSwag/NSwag/issues" + "url": "https://github.com/RicoSuter/NSwag/issues" }, "engines": { "npm": ">=3.10.8" diff --git a/src/NSwagStudio.Chocolatey/LICENSE.txt b/src/NSwagStudio.Chocolatey/LICENSE.txt index 503bdca66d..8f8b43ee92 100644 --- a/src/NSwagStudio.Chocolatey/LICENSE.txt +++ b/src/NSwagStudio.Chocolatey/LICENSE.txt @@ -1,4 +1,4 @@ -From: https://github.com/RSuter/NSwag/blob/master/LICENSE.md +From: https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md LICENSE diff --git a/src/NSwagStudio.Chocolatey/NSwagStudio.nuspec b/src/NSwagStudio.Chocolatey/NSwagStudio.nuspec index daefe59189..a2b012aa38 100644 --- a/src/NSwagStudio.Chocolatey/NSwagStudio.nuspec +++ b/src/NSwagStudio.Chocolatey/NSwagStudio.nuspec @@ -7,8 +7,8 @@ Rico Suter Rico Suter false - https://github.com/NSwag/NSwag/blob/master/LICENSE.md - https://github.com/NSwag/NSwag + https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md + https://github.com/RicoSuter/NSwag https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png NSwag: The Swagger API toolchain for .NET and TypeScript Swagger Documentation WebApi AspNet TypeScript CodeGen admin diff --git a/src/NSwagStudio/ISwaggerGeneratorView.cs b/src/NSwagStudio/ISwaggerGeneratorView.cs index 91d8036c04..cb2998bc8f 100644 --- a/src/NSwagStudio/ISwaggerGeneratorView.cs +++ b/src/NSwagStudio/ISwaggerGeneratorView.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerOutputViewModel.cs b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerOutputViewModel.cs index 22308e4191..463409732f 100644 --- a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerOutputViewModel.cs +++ b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerOutputViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpClientGeneratorViewModel.cs b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpClientGeneratorViewModel.cs index 5c5f6b030e..aa1114d49d 100644 --- a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpClientGeneratorViewModel.cs +++ b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpClientGeneratorViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpControllerGeneratorViewModel.cs b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpControllerGeneratorViewModel.cs index 274df90b15..d6e1591332 100644 --- a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpControllerGeneratorViewModel.cs +++ b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToCSharpControllerGeneratorViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToTypeScriptClientGeneratorViewModel.cs b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToTypeScriptClientGeneratorViewModel.cs index 2701e239c5..8406be6e4a 100644 --- a/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToTypeScriptClientGeneratorViewModel.cs +++ b/src/NSwagStudio/ViewModels/CodeGenerators/SwaggerToTypeScriptClientGeneratorViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/MainWindowModel.cs b/src/NSwagStudio/ViewModels/MainWindowModel.cs index 42a874a24e..73ffbce0f2 100644 --- a/src/NSwagStudio/ViewModels/MainWindowModel.cs +++ b/src/NSwagStudio/ViewModels/MainWindowModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/SwaggerGenerators/AspNetCoreToSwaggerGeneratorViewModel.cs b/src/NSwagStudio/ViewModels/SwaggerGenerators/AspNetCoreToSwaggerGeneratorViewModel.cs index b4e7d31c48..484edf7e46 100644 --- a/src/NSwagStudio/ViewModels/SwaggerGenerators/AspNetCoreToSwaggerGeneratorViewModel.cs +++ b/src/NSwagStudio/ViewModels/SwaggerGenerators/AspNetCoreToSwaggerGeneratorViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -96,7 +96,7 @@ public async Task GenerateSwaggerAsync() private async Task BrowseAssembly() { var dlg = new OpenFileDialog(); - dlg.DefaultExt = ".dll"; // + dlg.DefaultExt = ".dll"; // dlg.Filter = ".NET Assemblies (*.dll;*.exe)|*.dll;*.exe"; if (dlg.ShowDialog() == true) { diff --git a/src/NSwagStudio/ViewModels/SwaggerGenerators/AssemblyTypeToSwaggerGeneratorViewModel.cs b/src/NSwagStudio/ViewModels/SwaggerGenerators/AssemblyTypeToSwaggerGeneratorViewModel.cs index a276bf7f34..37a0f0754d 100644 --- a/src/NSwagStudio/ViewModels/SwaggerGenerators/AssemblyTypeToSwaggerGeneratorViewModel.cs +++ b/src/NSwagStudio/ViewModels/SwaggerGenerators/AssemblyTypeToSwaggerGeneratorViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/ViewModels/SwaggerGenerators/WebApiToSwaggerGeneratorViewModel.cs b/src/NSwagStudio/ViewModels/SwaggerGenerators/WebApiToSwaggerGeneratorViewModel.cs index bf10c5919f..51fa179568 100644 --- a/src/NSwagStudio/ViewModels/SwaggerGenerators/WebApiToSwaggerGeneratorViewModel.cs +++ b/src/NSwagStudio/ViewModels/SwaggerGenerators/WebApiToSwaggerGeneratorViewModel.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- @@ -129,7 +129,7 @@ public async Task GenerateSwaggerAsync() private async Task BrowseAssembly() { var dlg = new OpenFileDialog(); - dlg.DefaultExt = ".dll"; // + dlg.DefaultExt = ".dll"; // dlg.Filter = ".NET Assemblies (*.dll;*.exe)|*.dll;*.exe"; if (dlg.ShowDialog() == true) { diff --git a/src/NSwagStudio/ViewModels/ViewModelBase.cs b/src/NSwagStudio/ViewModels/ViewModelBase.cs index ed724e810a..b85a48b824 100644 --- a/src/NSwagStudio/ViewModels/ViewModelBase.cs +++ b/src/NSwagStudio/ViewModels/ViewModelBase.cs @@ -2,7 +2,7 @@ // // Copyright (c) Rico Suter. All rights reserved. // -// https://github.com/NSwag/NSwag/blob/master/LICENSE.md +// https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md // Rico Suter, mail@rsuter.com //----------------------------------------------------------------------- diff --git a/src/NSwagStudio/Views/MainWindow.xaml b/src/NSwagStudio/Views/MainWindow.xaml index b1c59f8f44..274ef03045 100644 --- a/src/NSwagStudio/Views/MainWindow.xaml +++ b/src/NSwagStudio/Views/MainWindow.xaml @@ -4,7 +4,7 @@ xmlns:viewModels="clr-namespace:NSwagStudio.ViewModels" xmlns:views="clr-namespace:NSwagStudio.Views" xmlns:controls="clr-namespace:NSwagStudio.Controls" - Title="NSwagStudio: The Swagger API toolchain for .NET and TypeScript" + Title="NSwagStudio: The Swagger API toolchain for .NET and TypeScript" MinHeight="650" MinWidth="1000" UseLayoutRounding="True" WindowStartupLocation="CenterScreen" Height="650" Width="1000"> @@ -23,10 +23,10 @@ - - @@ -36,7 +36,7 @@ @@ -47,9 +47,9 @@ -