路径上的架构错误不应在SWAGGER中具有其他属性

时间:2019-01-31 09:36:44

标签: yaml swagger swagger-2.0

请帮助我解决此问题

paths:   'sepa/sct/{OriginatorAccount}':
    post:
      tags:
        - SCT Initiation
      summary: SCT Initiation
      description: ''
      operationId: doSEPASCTInit
      parameters:
        - name: OriginatorAccount
          in: path
          description: Originator Account
          required: true
          type: string
        - in: body
          description: Input Content
          name: body
          required: false
          schema:
              $ref: '#/definitions/MandateInfo'
      responses:
        '200':
          description: successful operation
          schema:
            $ref: '#/definitions/MandateInfo'
        '400':
          description: Operation failed
        default:
          description: Alert details added successfully.

错误:

  

路径上的架构错误不应具有其他属性   另外的属性:sepa / sct / {OriginatorAccount}

1 个答案:

答案 0 :(得分:0)

端点路径必须以斜杠/开头:

/sepa/sct/{OriginatorAccount}