camel-karavan
camel-karavan copied to clipboard
Add support for dynamic properties
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.
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
It would be a good addition to the official catalog btw
Can not be solved in Karavan, because Karavan follows Kamelet spec