![](/img/trans.png)
[英]Is it possible to generate referenced schema for oneof properties using Swashbuckle?
默認情況下, Swashbuckle為oneof屬性(universeCategory)生成一個內聯模式,如下所示。 是否可以通過將一些配置傳遞給Swashbuckle來生成如下所示的引用模式? Open API 生成器等工具目前僅支持上述格式。 因此,任何為oneof屬性生成引用模式的解決方法 ...
[英]Is it possible to generate referenced schema for oneof properties using Swashbuckle?
默認情況下, Swashbuckle為oneof屬性(universeCategory)生成一個內聯模式,如下所示。 是否可以通過將一些配置傳遞給Swashbuckle來生成如下所示的引用模式? Open API 生成器等工具目前僅支持上述格式。 因此,任何為oneof屬性生成引用模式的解決方法 ...
[英]How to remove application/json from Swagger-UI included in Swashbuckle for asp.net
我有一個 asp.net .net 框架(不是核心),我在其中使用Swashbuckle為我的 API 自動生成 Swagger 文檔。 我還添加了Swashbuckle 示例。 我想使用SwaggerResponseExample來顯示示例返回數據,但在 Swagger UI 中總是將結果嵌套 ...
[英]How to suppress code parameter in Swashbuckle
我有一個 Azure function 應用程序,其中配置了 Swashbuckle 並以最少的配置工作。 Swashbuckle 正在生成帶有所需參數的 web 頁面,但參數code已添加到每個定義頁面。 如何抑制code參數? ...
[英].NET Framework Swashbucket Examples SwaggerRequestExample throws System.ArgumentNullException
我使用 Swashbucket 和 Swashbucket.Examples NugetPackages 在 .NET 框架 (v.4.7.2) 中提供 Swagger API 按照 https://github.com/mattfrear/Swashbuckle.AspNetCore.Filte ...
[英]Swagger/Swashbuckle Example limited to one example pr request object?
我一直在努力使用 Swashbuckle 制作 swagger 請求示例,因為我有幾個端點使用相同的請求 model。 我做了多個示例,將正確的示例應用於每個端點,但只有一個示例將應用於所有端點,這讓我很困惑。 然后我在 github ( https://github.com/mattfrear/ ...
[英]Sorting the Schemas portion of a Swagger page using Swashbuckle
在我的 Swagger 頁面上,我(大部分)能夠按照 Swashbuckle 頁面上的說明進行操作。 操作下方是“模式”部分,顯示操作使用的數據結構。 這些數據結構以任意順序出現。 我想對它們進行排序。 問題Swagger sort Schema Defintions表面上看起來像同一個問題,但在那 ...
[英]Azure Pipeline - build and gen swagger doc
我的項目是一個 AspNet Core 2.2 Api,我正在 Azure Pipelines(經典)中構建它我想在 azure 管道構建期間生成 swagger 文檔 - 為此我使用Swashbuckle.AspNetCore.Cli 和 Retrieve Swagger Directly fro ...
[英]Facing Problem while returning object in response Example in Swashbuckle.Examples
我在Web API中使用Swashbuckle.Examples來獲得更好的文檔。 它適用於Swashbuckle Sample響應,但當我使用示例示例時,當我運行項目時,它顯示錯誤。 我的控制器 響應示例類 錯誤 : 期望的examplesProviderTy ...
[英]Swagger-net (or swashbuckle) : how to set the namespace in the xml requests?
有沒有辦法使用 Swagger-net 生成帶有 xml 命名空間的示例請求? 還是虛張聲勢? 我在想這樣的事情: ...
[英]Add Authorize Attribute Filter in Swashbuckler Implementation of Swagger
希望將 AuthorizeFilterAttribute 或 AnonymousFilterAttribute 添加到 Swashbuckle 的 Swagger 實現中的端點,以便我可以看到在以 /swagger 結尾的正在運行的 webapi 中生成的文檔文件中的每個端點上使用了哪個屬性。 這個 ...
[英]Swashbuckle MapType<Type> doesn't work with parameters
我有一個 API 端點,它將 ShortGuid 類作為參數,如下所示: 生成一個 swagger 定義: 我需要將該參數視為字符串,而不是 ShortGuid 對象。 我已經有一個可以正常工作的類型的 JsonConverter,但 Swashbuckle 不理解它,所以我的架構不正確(而 ...