davsclaus commented on code in PR #30581:
URL: https://github.com/apache/camel/pull/30581#discussion_r4657713063


##########
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:
   Fixed in 53e7cd43c2ff: the sentence is split in two paragraphs (the reason 
in the first, the prefix rule in the second). The same commit changes the 
example to `serviceClass`, since the catalog checks of the doc examples 
(CatalogDocExamplesTest) reported `service-class` as an unknown cxf option; the 
dash form is still explained in the text.
   
   _Claude Code on behalf of davsclaus_



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