为什么在:body 参数在 swagger.json 文件中显示多个时间?

问题描述

路径结构错误。/{id}/payment-methods/{paymoid}.get.parameters 不应该有重复的项目(项目## 0 和 1 是相同的)
我:1
j:0
跳转到第 80 行
路径中的语义错误。/{id}/payment-methods/{paymoid}.get.parameters
不允许有多个 body 参数。
跳转到第 80 行
路径中的语义错误。/{id}/payment-methods/{paymoid}.get.parameters.1
同级参数必须具有唯一的名称 + 值
跳到第 85 行

'/{id}/payment-methods/{paymoid}':
    get:
      tags:
        - Customer Resource
      summary: Get customer payment method
      description: ''
      operationId: getPaymentMethods
      ***parameters:
        - in: body
          name: body
          required: false
          schema:
            type: string
        - in: body
          name: body
          required: false***
          schema:
            type: string
      responses:
        '200':
          description: successful operation
          schema:
            $ref: '#/deFinitions/AccountPaymentMethodDetails'
        '400':
          description: Bad request
        '401':
          description: User unauthorized

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)