Bean: Use properties
instead of property
with key
and value
#1475
Milestone
properties
instead of property
with key
and value
#1475
I found some kamelets are using
beans
property
withkey
andvalue
style, for examplehttps://github.com/apache/camel-kamelets/blob/main/kamelets/mysql-sink.kamelet.yaml#L97-L108
But the schema doesn't allow it.
RouteTemplateDefinition
specifiesNamedBeanDefinition
forbeans
https://github.com/apache/camel/blob/camel-3.20.x/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json#LL2621C40-L2621C40
where
NamedBeanDefinition
has onlyproperties
with the typeobject
https://github.com/apache/camel/blob/camel-3.20.x/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json#L339
Once
additionalProperties: false
is added to the schema (which is on table for doing on Camel4), this could end up with validation error. We'd want to align with schema before it happens.Cc: @lburgazzoli
The text was updated successfully, but these errors were encountered: