简体   繁体   English

在 Asp.Net Framework WebApi 中使用 Swashbuckle 生成 Swagger OpenApi Spec 3.0

[英]Generate Swagger OpenApi Spec 3.0 using Swashbuckle in Asp.Net Framework WebApi

Swashbuckle version="5.6.0" targetFramework="net451" generates "swagger": "2.0" spec.Is there any way to generate 3.0 spec? Swashbuckle version="5.6.0" targetFramework="net451" 生成"swagger": "2.0"规范。有没有办法生成 3.0 规范?

In Asp.Net Core we can generate 3.0, what about in Asp.Net Framework WebApi?在 Asp.Net Core 中我们可以生成 3.0,那么在 Asp.Net Framework WebApi 中呢?

Unlike Swashbukle.AspNetCore, Swashbuckle does not support OpenAPI 3.0 .与 Swashbukle.AspNetCore 不同,Swashbuckle不支持 OpenAPI 3.0

Recommend the Nswag.推荐Nswag。

Key settings.键设置。

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Swashbuckle + ASP.Net Core WebApi:Swagger 文档不包含用于版本选择的 Request-Header 或 QueryParameter? - Swashbuckle + ASP.Net Core WebApi: Swagger Document does not include Request-Header or QueryParameter for version selection? 如何配置Swagger / Swashbuckle自定义序列化程序IControllerConfiguration ASP.NET WebAPI - How to configure Swagger/Swashbuckle custom serializer IControllerConfiguration ASP.NET WebAPI 可以从Swashbuckle / Swagger UI中排除ASP.NET WebAPI操作参数吗? - Can an ASP.NET WebAPI action parameter be excluded from Swashbuckle/Swagger UI? 使用ASP.NET MVC WebApi的Swashbuckle 5.4.0 - 在swagger网页中没有显示任何文档 - Swashbuckle 5.4.0 with ASP.NET MVC WebApi - No documentation is shown inside the swagger webpage ASP.Net WebAPI Swagger - ASP.Net WebAPI Swagger 面向.Net Framework 4.6.1的ASP.NET Core MVC上的Swagger(Swashbuckle) - Swagger (Swashbuckle) on ASP.NET Core MVC targeting .Net Framework 4.6.1 Swagger openApi Spec 3.0 - 删除操作 - Swagger openApi Spec 3.0 - DELETE operation 如何使用asp.net core web api中的Swashbuckle记录要在swagger ui中显示的包装响应 - How to document a wrapped response to be displayed in swagger ui using a Swashbuckle in asp.net core web api ASP.NET Core - Swashbuckle 未创建 swagger.json 文件 - ASP.NET Core - Swashbuckle not creating swagger.json file 使用 Swashbuckle 和 ASP.NET Identity 限制对 Swagger 中某些 API 控制器的访问 - Restrict access to certain API controllers in Swagger using Swashbuckle and ASP.NET Identity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM