.net-core - 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;
``
解决方案
推荐阅读
- java - 如何以相反的顺序显示 ListView(最新的在上)?
- java - 如何使用 mysql 保存用户状态,以便他们每天只能执行一次操作?
- php - 在模型中创建新列而不是迁移
- airflow - 气流回填和追赶有什么区别
- java - 如何使用 JPA 将大型 Blob 从数据库流式传输到应用程序?
- php - 如何格式化迄今为止的长整数
- r - reviews2$Rating 中的错误:$ 运算符对原子向量无效
- vba - 我需要在 MS Word 中模拟 Application.Evaluate 方法
- facebook-graph-api - Instagram 业务资料信息(如果未连接到 Facebook 页面)
- python - 你如何让 python 机器人点击电报机器人中的按钮