[ 
https://issues.apache.org/jira/browse/CAMEL-23987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-23987.
---------------------------------
    Resolution: Fixed

> camel-yaml-dsl - note property rejected on top-level from, routeConfiguration 
> and kamelet (CAMEL-22576 asymmetry)
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-23987
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23987
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-yaml-dsl
>    Affects Versions: 4.21.0
>            Reporter: Federico Mariani
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.22.0
>
>
> CAMEL-22576 ({{c754e387efcc}}) added the {{note}} property to 
> {{FromDefinitionDeserializer}}, {{RouteDefinitionDeserializer}}, 
> {{RouteTemplateDefinitionDeserializer}}, {{YamlSupport}} and all generated 
> EIP deserializers (176 occurrences in {{ModelDeserializers.java}}), but 
> missed three hand-written deserializers whose underlying models all support 
> it ({{OptionalIdentifiedDefinition}} has both {{note}} and {{description}}):
> * {{OutputAwareFromDefinitionDeserializer.java:84-105}} — no {{note}} case: 
> top-level {{- from: {uri: "timer:tick", note: "x", steps: [...]}}} throws 
> {{UnsupportedFieldException: note}} while the identical {{route:}}-wrapped 
> form works;
> * {{RouteConfigurationDefinitionDeserializer.java:84-121}} — no {{note}} case;
> * {{KameletDeserializer.java:72-87}} — no {{note}} *and no* {{description}} 
> case ({{id}} is handled), while every other EIP step accepts both.
> Fix: add the missing cases (and matching {{@YamlProperty}} declarations so 
> the JSON schema stays in sync).
> _Filed by Claude Code on behalf of Croway._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to