-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Do not merge yet** Use new Microsoft.Extensions.ApiDescription.Serv…
…er package - !!! the Microsoft.Extensions.ApiDescription.* package version is not public as far as I know !!! - provides document download on build and aligns with Microsoft.Extensions.ApiDescription.Client p2p references - this feature is on by default - can be disabled using `<OpenApiRetrieveDocuments>false</OpenApiRetrieveDocuments>` - timing can be changed using `<OpenApiRetrieveDocumentsAfterBuild>false</OpenApiRetrieveDocumentsAfterBuild>` - 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 - take VS suggestions in `NSwagServiceCollectionExtensions` - add missing `NSwagServiceCollectionExtensions` copyright header - correct spelling in `AspNetCoreOpenApiDocumentGenerator`
- Loading branch information
Showing
10 changed files
with
146 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<metadata> | ||
<id>$id$</id> | ||
<version>$version$</version> | ||
<authors>$authors$</authors> | ||
<description>$description$</description> | ||
<tags>Swagger Documentation WebApi AspNet TypeScript CodeGen</tags> | ||
<projectUrl>https://github.com/NSwag/NSwag</projectUrl> | ||
<licenseUrl>https://github.com/NSwag/NSwag/blob/master/LICENSE.md</licenseUrl> | ||
<iconUrl>https://raw.githubusercontent.com/NSwag/NSwag/master/assets/NuGetIcon.png</iconUrl> | ||
<dependencies> | ||
<group targetFramework=".NETFramework4.5.1"> | ||
<dependency id="NSwag.Annotations" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Core" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Generation.AspNetCore" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Generation" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.Mvc.Core" version="$microsoftAspNetCoreMvcCorePackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.Mvc.Formatters.Json" version="$microsoftAspNetCoreMvcFormattersJsonPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.StaticFiles" version="$microsoftAspNetCoreStaticFilesPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.Extensions.ApiDescription.Server" version="$microsoftExtensionsApiDescriptionServerPackageVersion$" /> | ||
<dependency id="Microsoft.Extensions.FileProviders.Embedded" version="$microsoftExtensionsFileProvidersEmbeddedPackageVersion$" exclude="Build,Analyzers" /> | ||
</group> | ||
<group targetFramework=".NETStandard1.6"> | ||
<dependency id="NSwag.Annotations" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Core" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Generation.AspNetCore" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Generation" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.Mvc.Core" version="$microsoftAspNetCoreMvcCorePackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.Mvc.Formatters.Json" version="$microsoftAspNetCoreMvcFormattersJsonPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.StaticFiles" version="$microsoftAspNetCoreStaticFilesPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.Extensions.ApiDescription.Server" version="$microsoftExtensionsApiDescriptionServerPackageVersion$" /> | ||
<dependency id="Microsoft.Extensions.FileProviders.Embedded" version="$microsoftExtensionsFileProvidersEmbeddedPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="NETStandard.Library" version="$netStandardLibraryPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="System.IO.FileSystem" version="$systemIOFileSystemPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="System.Xml.XPath.XDocument" version="$systemXmlXPathXDocumentPackageVersion$" exclude="Build,Analyzers" /> | ||
</group> | ||
<group targetFramework=".NETStandard2.0"> | ||
<dependency id="NSwag.Annotations" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Core" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Generation.AspNetCore" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="NSwag.Generation" version="$version$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.Mvc.Core" version="$microsoftAspNetCoreMvcCorePackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.Mvc.Formatters.Json" version="$microsoftAspNetCoreMvcFormattersJsonPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.AspNetCore.StaticFiles" version="$microsoftAspNetCoreStaticFilesPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="Microsoft.Extensions.ApiDescription.Server" version="$microsoftExtensionsApiDescriptionServerPackageVersion$" /> | ||
<dependency id="Microsoft.Extensions.FileProviders.Embedded" version="$microsoftExtensionsFileProvidersEmbeddedPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="System.IO.FileSystem" version="$systemIOFileSystemPackageVersion$" exclude="Build,Analyzers" /> | ||
<dependency id="System.Xml.XPath.XDocument" version="$systemXmlXPathXDocumentPackageVersion$" exclude="Build,Analyzers" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="bin\$configuration$\net451\NSwag.AspNetCore.dll" target="lib\net451\" /> | ||
<file src="bin\$configuration$\net451\NSwag.AspNetCore.xml" target="lib\net451\" /> | ||
<file src="bin\$configuration$\netstandard1.6\NSwag.AspNetCore.dll" target="lib\netstandard1.6\" /> | ||
<file src="bin\$configuration$\netstandard1.6\NSwag.AspNetCore.xml" target="lib\netstandard1.6\" /> | ||
<file src="bin\$configuration$\netstandard2.0\NSwag.AspNetCore.dll" target="lib\netstandard2.0\" /> | ||
<file src="bin\$configuration$\netstandard2.0\NSwag.AspNetCore.xml" target="lib\netstandard2.0\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -361,4 +361,4 @@ private static string GetActionName(string actionName) | |
return actionName; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.