davsclaus opened a new pull request, #30737: URL: https://github.com/apache/camel/pull/30737
_Claude Code on behalf of davsclaus_ [CAMEL-27410](https://issues.apache.org/jira/browse/CAMEL-27410) An option with both the `consumer` and the `producer` label gets no method in any builder of the Endpoint DSL: `endpoint-builder.vm` puts a `producer` option only in the producer builder and a `consumer` option only in the consumer builder, so an option with both fails one of the two tests everywhere. The ticket proposed to change the template. This PR fixes the labels instead: an option both sides use is `common`, and with the template unchanged, "both labels" does not become a second way to write `common`. All the labels with both sides in the catalog on main (endpoint and component options, path options, headers, API options): | Component | Option | Used by | New label | |---|---|---|---| | ignite-messaging | `clusterGroupExpression` | consumer and producer (`createIgniteMessaging`) | `common` | | salesforce | `topicName` (path) | the subscribe and pubSub consumers, and the `pubSubPublish` producer | `common` | | ignite-cache | `query` | only the continuous query consumer; the producer's QUERY operation takes the query from the `CamelIgniteCacheQuery` header or the body | `consumer` | | paho-mqtt5 | header `CamelPahoMqtt5MsgProperties` | consumer and producer | no label, like other headers used by both sides | alibaba-oss `maxKeys`, the fourth option the ticket listed, was fixed by CAMEL-27388 (#30642). ### Changes - The four labels above; regenerated component JSON, catalog copies and Endpoint DSL. The Endpoint DSL gets `query` on the ignite-cache consumer builder and `clusterGroupExpression` on the three ignite-messaging builders. - `EndpointSchemaGeneratorMojo.validateLabels`: the build of a component fails when one of its options or headers has both labels, and the message names them. ### Tests - `EndpointSchemaGeneratorMojoTest`: 3 new tests (an option with both labels in any order or with `advanced`, a header with both labels, and labels that are fine). camel-package-maven-plugin: 161 tests run, all pass. - Checked end to end: with the old `producer,consumer` label put back on ignite-cache `query`, the camel-ignite build fails with "The ignite-cache component has options or headers labelled both consumer and producer ...: parameter query". With the new labels camel-ignite and camel-paho-mqtt5 build with the new plugin. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
