apache / camel-karavan

Apache Camel Karavan a Low-code Data Integration Platform
https://camel.apache.org
Apache License 2.0
452 stars 156 forks source link

Key/Value properties style for beans does not work #1239

Closed mgubaidullin closed 7 months ago

mgubaidullin commented 7 months ago

Describe the bug

Karavan supports traditional Bean properties

  template:
    beans:
      - name: dsBean
        type: "#class:org.apache.commons.dbcp2.BasicDataSource"
        properties:
          username: '{{username}}'
          password: '{{password}}'
          url: 'jdbc:postgresql://{{serverName}}:{{serverPort}}/{{databaseName}}'
          driverClassName: 'org.postgresql.Driver'

However some Kamelets contains new one

  template:
    beans:
      - name: schemaResolver
        type: "#class:org.apache.camel.component.jackson.avro.transform.AvroSchemaResolver"
        property:
          - key: validate
            value: '{{validate}}'
          - key: schema
            value: '{{schema:}}'

Steps to reproduce the behavior

  1. Go to '...'a
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Variant

Web Application

Container Management (if applicable)

None

Operating System (if applicable)

None

Version

4.5.0

Relevant log output

No response

mgubaidullin commented 7 months ago

Because of that https://issues.apache.org/jira/browse/CAMEL-20698