admin管理员组文章数量:1357653
Is there an alternative to Swagger's configuration IncludeXMLComments in native MS OpenApi which is introduced on .NET9? I'm running a project on 8 and migrating to 9 and wanted to migrate to native OpenApi and Scalar support, but I'm relying on SwaggerGen to use methods' and properties' XML comments in code to generate meaningful descriptions in API specification. I could not find anything similar in native OpenAPI library.
Code snippet from Swagger related implementation:
// add the xml comments to the swagger generated json
var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
config.IncludeXmlComments(xmlPath);
本文标签: aspnet coreAlternative to Swagger39s IncludeXMLComments in native MS OpenApi on NET9Stack Overflow
版权声明:本文标题:asp.net core - Alternative to Swagger's IncludeXMLComments in native MS OpenApi on .NET9 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743947881a2566745.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论