lburgazzoli commented on pull request #5670:
URL: https://github.com/apache/camel/pull/5670#issuecomment-861787775


   ok I got something working to support this but there is something that does 
not look good to me as example:
   
   ```yaml
     delete:
     - id: "deletePet"
       uri: "/pet/{petId}"
       param:
         - dataType: "string"
           name: "api_key"
           required: "false"
           type: "header"
         - dataType: "integer"
           description: "Pet id to delete"
           name: "petId"
           required: "true"
           type: "path"
   
     - id: "deleteOrder"
       uri: "/store/order/{orderId}"
       param:
         dataType: "integer"
         description: "ID of the order that needs to be deleted"
         name: "orderId"
         required: "true"
         type: "path"
   ```
   
   `deletePet` has `param` defined as array
   `deleteOrder` has `param` defined as object
   
   I think it should be consistent and it should be an array otherwise it would 
be a little bit misleading and complex to parse and to validate it
   
   @davsclaus what do you think ?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to