davsclaus opened a new pull request, #24045: URL: https://github.com/apache/camel/pull/24045
## Summary - Mark `rest`, `template`, and `kamelet` boolean fields on `RouteDefinition` as `@XmlTransient` (on their setters) instead of `@XmlAttribute` (on their getters). These are runtime transient flags that should never be serialized to XML. - The `@XmlAttribute` annotation caused the XML `ModelWriter` to emit spurious attributes like `kamelet="false"` on the `<route>` element, and the `kamelet` element handler in `ModelParser` shadowed the `KameletDefinition` EIP child element, breaking XML round-trip (parse → write → re-parse). - Regenerated `ModelParser`, `ModelWriter`, `camel-spring.xsd`, and `camel-xml-io.xsd`. ## Test plan - [x] Existing `ModelWriterTest` round-trip tests pass (they no longer produce spurious attributes) - [ ] Verify a route with `<kamelet name="my-processor"/>` child element survives XML round-trip _Claude Code on behalf of Claus Ibsen_ Co-Authored-By: Claude <[email protected]> -- 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]
