davsclaus opened a new pull request, #25861:
URL: https://github.com/apache/camel/pull/25861

   ## Backport of #25840
   
   Cherry-pick of #25840 onto `camel-4.22.x`.
   
   **Original PR:** #25840 - CAMEL-24482: camel-yaml-dsl - Canonical schema 
wrongly requires every data format on unmarshal
   **Original author:** @davsclaus
   **Target branch:** `camel-4.22.x`
   
   ### Original description
   
   `camel validate yaml --canonical` on a route with a single `unmarshal` data 
format incorrectly demanded all other data formats also be present, because 
`required=true` on each `oneOf` alternative leaked into the flat top-level 
`required` list once the canonical schema's `oneOf` grouping was dropped. 
`YamlValidator` now re-checks "pick exactly one" cardinality directly from the 
catalog's `oneOf`/`required` metadata in canonical mode. Also aligned 
`MarshalDefinition` with `UnmarshalDefinition` to require a data format.
   
   ### Backport notes
   
   This PR depends on #25860 (backport of #25841) already being merged onto 
`camel-4.22.x` — the generated schema/deserializer files were regenerated from 
source after cherry-picking to reflect this branch's actual component set 
(fewer data formats than `main`), rather than blindly taking the `main`-side 
generated diff.
   
   See #25840 for the full description and test plan.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to