forked from RicoSuter/NSwag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RicoSuter#2520 from RicoSuter/master
Release v13.1.4
- Loading branch information
Showing
94 changed files
with
1,721 additions
and
1,401 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
samples/WithoutMiddleware/Sample.AspNetCore20/nswag_project_swagger.json
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
2 changes: 1 addition & 1 deletion
2
samples/WithoutMiddleware/Sample.AspNetCore21/nswag_assembly_swagger.json
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
2 changes: 1 addition & 1 deletion
2
samples/WithoutMiddleware/Sample.AspNetCore21/nswag_project_swagger.json
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
2 changes: 1 addition & 1 deletion
2
samples/WithoutMiddleware/Sample.AspNetCore21/nswag_reflection_swagger.json
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
src/NSwag.AspNet.Owin/SwaggerUi3/swagger-ui-standalone-preset.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,39 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="ApiverseUiSettings.cs" company="NSwag"> | ||
// Copyright (c) Rico Suter. All rights reserved. | ||
// </copyright> | ||
// <license>https://github.com/RicoSuter/NSwag/blob/master/LICENSE.md</license> | ||
// <author>Rico Suter, [email protected]</author> | ||
//----------------------------------------------------------------------- | ||
|
||
using Microsoft.AspNetCore.Http; | ||
|
||
namespace NSwag.AspNetCore | ||
{ | ||
/// <summary> | ||
/// The Apiverse.io UI settings. | ||
/// </summary> | ||
public class ApiverseUiSettings : SwaggerUiSettingsBase | ||
{ | ||
/// <summary>Initializes a new instance of the <see cref="ApiverseUiSettings"/> class.</summary> | ||
public ApiverseUiSettings() | ||
{ | ||
DocumentPath = "swagger/v1/swagger.json"; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the global document ID to compare with. | ||
/// </summary> | ||
public string CompareWith { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Apiverse.io instance URL. | ||
/// </summary> | ||
public string ApiverseUrl { get; set; } = "https://apiverse.io"; | ||
|
||
internal override string TransformHtml(string html, HttpRequest request) | ||
{ | ||
return html; | ||
} | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
src/NSwag.AspNetCore/SwaggerUi3/swagger-ui-standalone-preset.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project> | ||
<PropertyGroup Condition=" '$(OpenApiGenerateDocuments)' == 'default-false' "> | ||
<PropertyGroup Condition=" '$(OpenApiGenerateDocumentsOnBuild)' == 'default-false' "> | ||
<!-- | ||
If user changed $(OpenApiDocumentsDirectory) but not $(OpenApiGenerateDocuments), enable document generation. | ||
Otherwise, disable document generation. | ||
Disable document generation on build by default. If user changed $(OpenApiDocumentsDirectory) but not | ||
$(OpenApiGenerateDocumentsOnBuild) and feature is supported, enable document generation on build. | ||
Changing $(OpenApiDocumentsDirectory) does nothing when $(OpenApiGenerateDocuments) is false. | ||
--> | ||
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments> | ||
<OpenApiGenerateDocuments | ||
Condition=" '$(OpenApiDocumentsDirectory)' != '$(BaseIntermediateOutputPath)' ">true</OpenApiGenerateDocuments> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(OpenApiGenerateDocumentsOnBuild)' == 'default-false' "> | ||
<OpenApiGenerateDocumentsOnBuild>$(OpenApiGenerateDocuments)</OpenApiGenerateDocumentsOnBuild> | ||
<OpenApiGenerateDocumentsOnBuild>false</OpenApiGenerateDocumentsOnBuild> | ||
<OpenApiGenerateDocumentsOnBuild | ||
Condition=" '$(OpenApiDocumentsDirectory)' != '$(BaseIntermediateOutputPath)' ">$(OpenApiGenerateDocuments)</OpenApiGenerateDocuments> | ||
</PropertyGroup> | ||
</Project> |
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
Oops, something went wrong.