astefanutti commented on pull request #2831: URL: https://github.com/apache/camel-k/pull/2831#issuecomment-994666278
> If end users do not write the yaml dsl by hand, then we could maybe not have this _inlined_ and be more verbose. And tooling can maybe also better parse/generate the yaml if its specified via `parameters`, and `uri` objects. > > Having to use `uri` is however mandatory in XML but its a bit less verbose, or intuitive, as its in the xml tag: > > ``` > <from uri="kafka:cheese"/> > ``` > > vs > > ``` > from: > uri: kafka:cheese > ``` > Yes, removing the "inlined" form would only be for the YAML DSL, and possibly only for the Camel K flavour, to meet tools that rely on CRDs. > Also what if you combine oneOf with parameters - that is not possible accroding to the schema, but wonder if the yaml parser can parse it anyway > > ``` > from: kafka:cheese > parameters: > client-id: 1234 > commit-timeout-ms: 10000 > ``` Right, I don't think this could even be parsed. -- 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]
