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

   ## Backport of #25841
   
   Cherry-pick of #25841 onto `camel-4.22.x`.
   
   **Original PR:** #25841 - CAMEL-24479: camel-yaml-dsl - Restore 
additionalProperties:false for explicit expression/inline-hosted definitions
   **Original author:** @davsclaus
   **Target branch:** `camel-4.22.x`
   
   ### Original description
   
   `camel validate yaml` (classic/default mode, no `--canonical`) silently 
accepted an `expression:` block containing an unknown property and two 
mutually-exclusive language choices at once. 
`postProcessInheritance`/`postProcessComposition` stripped 
`additionalProperties: false` from the shared `ExpressionDefinition` schema in 
place when inlining it via `__extends`, which also stripped it from the 
definition's own explicit `expression: {...}` usage. Cloning the definition 
before stripping keeps the explicit form closed while inline shorthand stays 
open.
   
   See #25841 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