2017-01-16 8 views

答えて

0

エラーは、それは、「操作は、複数の身体パラメータを持つことができません」と述べ、まさにです。あなたの例では、エラーはPOST /company/fastbill/customers操作にあります。

bodyは、要求本体を表します。したがって、複数のデータオブジェクトをPOSTする場合は、それらを1つのオブジェクトペイロードに結合する必要があります。たとえば、

 - name: body 
      in: body 
      required: true 
      schema: 
      type: object 
      properties: 
       customer_details: 
       $ref: '#/definitions/Customer' 
       bank_account: 
       type: object 
       properties: 
        sources: 
        type: array 
        items: 
         $ref: '#/definitions/BankAccount' 
+0

ありがとう、ヘレン、それは正常に動作します。 – Rock

関連する問題