camel-karavan icon indicating copy to clipboard operation
camel-karavan copied to clipboard

Add support for dynamic properties

Open bartoszpop opened this issue 1 year ago • 2 comments

We created a kamelet for the OAuth2 authentication that accepts a list of key-value pairs provided by the user, and we tried to use type=object with additionalProperties defined in react-jsonschema-form (used by OpenShift), but it does not render as Karavan uses PatternFly. Is there any way to have a dynamic field with key-value pairs or do you plan to add this feature? Similarly for the arrays. Syntax could be the same as for react-jsonschema-form, e.g.

spec:
  definition:
    title: "Kamelet"
    description: This is a kamelet.
    type: object
    properties:
      title: Form
      type: object
      properties:
        someProperty:
          title: Key-Value Pairs
          type: object
          additionalProperties:
            type: string

We use kamelets extensively and it is a common scenario where properties are not static.

bartoszpop avatar Feb 21 '24 22:02 bartoszpop

Karavan uses Kamelet spec. react-jsonschema-form or Patterfly has nothing to do with that. If your Kamelet is following Kamelet spec and are not visualized correctly in Karavan, please provide Kamelet yaml file. If you want to change Kamelet spec, please create an issue in Kamelet project: https://github.com/apache/camel-kamelets

mgubaidullin avatar Mar 12 '24 17:03 mgubaidullin

It would be a good addition to the official catalog btw

oscerd avatar Mar 12 '24 17:03 oscerd

Can not be solved in Karavan, because Karavan follows Kamelet spec

mgubaidullin avatar Apr 10 '24 12:04 mgubaidullin