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

Python OpenAPI client cannot use literals for Variable values

XMLWordPrintable

      Environment (Required on creation):

      Camunda BPM Run , 7.15.0, accessed through REST Python client generated by  openapi-generator-cli

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      Steps to reproduce (Required on creation):

       I downloaded the openapi.json file for Camunda 7.15.0
      Using openapi-generator-cli I generated a client for Python.
      However when I am testing the /message API I have a problem when I try to set process variable (Postman example below)

       

      Observed Behavior (Required on creation):

      The client raises an error, because for the "value" I am passing a string "What time is it?" and according to the openapi schema, it expects an object (dictionary):

       

      Expected behavior (Required on creation):

      To be able to send as processVariables values - simple literals like string, int, etc.

      Root Cause (Required on prioritization):

      Solution Ideas (Optional):

      Describe "value"."type" as

      • oneOf (string, integer, ...)
      • the built-in AnyValue supported by OpenAPI

      Hints (Optional):

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              jaxx Valentin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: