gnodet-bot commented on code in PR #30581: URL: https://github.com/apache/camel/pull/30581#discussion_r4657457755
########## dsl/camel-yaml-dsl/camel-yaml-dsl/src/main/docs/yaml-dsl.adoc: ########## @@ -375,6 +375,31 @@ Because the keys use underscore, then they are quoted. IMPORTANT: To use map values for parameters, then the `uri` must only refer to the name of the component, ie `plc4x` and not `plc4x:foo` +=== Option names in dash form + +An option under `parameters` can be written in dash form, such as `service-class`, which Camel uses as +`serviceClass`. This is not done for the keys of a map option, as Camel passes them on as they are written: when a +key starts with the prefix of a map option, such as `properties.` of the CXF component or `scheduler.` of a polling +consumer, only the prefix is turned into camelCase, and the rest of the key is kept. The keys of a map value are kept +as they are written as well. Review Comment: 📝 **Documentation:** This sentence is 59 words, well over the 25-word Simplified Technical English guideline. Consider splitting it into shorter sentences: ```suggestion `serviceClass`. This is not done for the keys of a map option. Camel passes them on as they are written: when a key starts with the prefix of a map option (such as `properties.` of the CXF component or `scheduler.` of a polling consumer), only the prefix is turned into camelCase, and the rest of the key is kept. The keys of a map value are kept as they are written as well. ``` -- 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]
