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
Hey jaxx,
thanks for creating this issue and describing it in-depth.
We will have a look at how to generate a Python OpenAPI client that allows to send literals as well for variable values.
Please note that due to other commitments and priorities this might take a while.
In the meantime, if you have any solution ideas and hints from official guides on how to solve this, let us know. This will help tremendously in speeding up the resolution of this issue.
Best,
Tobias