Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-13510

OpenAPI Create Deployment: Data property has incorrect configuration for multiple files

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Duplicate
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • None
    • None

      tested on 7.16 alpha 1

       

      DTO in openapi for file uploads is:

       

      ```

      "MultiFormDeploymentDto": {
      "type": "object",
      "properties": {
      "tenant-id":

      { "type": "string", "nullable": true, "description": "The tenant id for the deployment to be created." }

      ,
      "deployment-source":

      { "type": "string", "nullable": true, "description": "The source for the deployment to be created." }

      ,
      "deploy-changed-only":

      { "type": "boolean", "nullable": true, "default": false, "description": "A flag indicating whether the process engine should perform duplicate checking on a per-resource basis.\nIf set to true, only those resources that have actually changed are deployed.\nChecks are made against resources included previous deployments of the same name and only against the latest versions of those resources.\nIf set to true, the option enable-duplicate-filtering is overridden and set to true." }

      ,
      "enable-duplicate-filtering":

      { "type": "boolean", "nullable": true, "default": false, "description": "A flag indicating whether the process engine should perform duplicate checking for the deployment or not.\nThis allows you to check if a deployment with the same name and the same resouces already exists and\nif true, not create a new deployment but instead return the existing deployment. The default value is false." }

      ,
      "deployment-name":

      { "type": "string", "nullable": true, "description": "The name for the deployment to be created." }

      ,
      "data":

      { "type": "string", "format": "binary", "nullable": true, "description": "The binary data to create the deployment resource.\nIt is possible to have more than one form part with different form part names for the binary data to create a deployment." }

      }
      }

      ```

      Specially the data prop appears to be wrong.  (Did anyone test this? with actual deployments and multiple file?)

       

      see https://swagger.io/docs/specification/describing-request-body/file-upload/

       

      data should be a array as per the "Multiple File Upload" section of the link above.

       

       

       

       

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              StephenOTT Stephen Russett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: