You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/10/26 10:51:28 UTC

[GitHub] [camel] lburgazzoli commented on a change in pull request #6341: CAMEL-17097: YAML DSL Camel Case

lburgazzoli commented on a change in pull request #6341:
URL: https://github.com/apache/camel/pull/6341#discussion_r736401424



##########
File path: dsl/camel-yaml-dsl/camel-yaml-dsl/src/test/groovy/org/apache/camel/dsl/yaml/SagaTest.groovy
##########
@@ -40,7 +40,13 @@ class SagaTest extends YamlTestSupport {
                 with(completion, SagaActionUriDefinition) {
                     uri == "direct:completion"
                 }
+                // saga spans the entire route so steps are inserted before any saga specific step
+                // https://issues.apache.org/jira/browse/CAMEL-17129
                 with(outputs[0], ToDefinition) {
+                    endpointUri == 'mock:result'
+                }
+                //

Review comment:
       removed

##########
File path: dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/src/main/java/org/apache/camel/maven/dsl/yaml/GenerateYamlDeserializersMojo.java
##########
@@ -648,10 +653,14 @@ private TypeSpecHolder generateParser(ClassInfo info) {
         annotationValue(info, XML_ROOT_ELEMENT_ANNOTATION_CLASS, "name")
             .map(AnnotationValue::asString)
             .filter(value -> !"##default".equals(value))
-            .map(StringHelper::camelCaseToDash)
-            .ifPresent(v -> {
-                yamlTypeAnnotation.addMember("nodes", "$S", v);
-                TypeSpecHolder.put(attributes, "node", v);
+            .ifPresent(value -> {
+                if (!Objects.equals(value, StringHelper.camelCaseToDash(value))) {

Review comment:
       comment added




-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org