Swagger 2.0放置问题

时间:2019-10-03 07:29:23

标签: swagger-2.0

我有“ swagger.yaml”文件,它已在swagger在线编辑器中通过,并且在浏览器中工作正常,并且生成了nodejs surver。当我尝试启动服务器时,它抛出了一些错误,例如...

API错误:

  #/paths/~1scheduledTasks~1:id/get/parameters/0/name: API path parameter could not be resolved: id
  #/paths/~1scheduledTasks~1:id/head/parameters/0/name: API path parameter could not be resolved: id
  #/paths/~1scheduledTasks~1:id/put/parameters/0/name: API path parameter could not be resolved: id
  #/paths/~1scheduledTasks~1:id/delete/parameters/0/name: API path parameter could not be resolved: id
  #/paths/~1scheduledTasks~1:id/patch/parameters/0/name: API path parameter could not be resolved: id

API警告:

  #/parameters/id: Parameter is defined but is not used: #/parameters/id
  #/parameters/page: Parameter is defined but is not used: #/parameters/page
  #/parameters/perPage: Parameter is defined but is not used: #/parameters/perPage
  #/parameters/status: Parameter is defined but is not used: #/parameters/status

对此有什么解决方案...?

0 个答案:

没有答案