首页 > 解决方案 > Swashbuckle 5.0 - “PathItem”的等价物

问题描述

我正在使用 swagger5.0 将 .netcore 项目从 2.0 升级到 3.1。我收到“PathItem”的构建错误,相当于“PathItem”

 private void DisablePath(PathItem item, string method)
        {
            // We need to find appropriate field inside swagger item object and set it to null
            // after this api method for this route and http method will be excluded
            switch (method)
            {
                case "DELETE":
                    item.Delete = null;
                    break;
                case "GET":
                    item.Get = null;
                    break;
``

标签: .net-coreswashbuckle

解决方案


推荐阅读