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

   ## Summary
   
   Add transformers and validators as root-level elements in the YAML DSL, 
bringing feature parity with the XML DSL.
   
   - Mark `TransformersDefinition` and `ValidatorsDefinition` with `@YamlIn` in 
the YAML deserializer code generator
   - Handle `TransformersDefinition` and `ValidatorsDefinition` in 
`YamlRoutesBuilderLoader.doConfigure()`
   - Regenerate schema and deserializers
   - Add Spock tests for transformers and validators
   
   Example YAML:
   ```yaml
   - transformers:
       loadTransformer:
         defaults: true
       endpointTransformer:
         ref: myXmlEndpoint
         fromType: xml:XmlXOrder
         toType: "java:org.example.XOrder"
       customTransformer:
         className: org.example.MyTransformer
         fromType: other:OtherXOrder
         toType: "java:org.example.XOrder"
   
   - validators:
       endpointValidator:
         type: xml:XmlXOrderResponse
         uri: "myxml:endpoint"
       customValidator:
         type: other:OtherXOrder
         className: org.example.OtherXOrderValidator
   ```
   
   Fixes: https://issues.apache.org/jira/browse/CAMEL-22745


-- 
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