You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/10/20 10:43:09 UTC

[camel] branch main updated: CAMEL-20017: camel-yaml-dsl - yaml schema generator should not be kebab-case by default.

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 6a947b1c57d CAMEL-20017: camel-yaml-dsl - yaml schema generator should not be kebab-case by default.
6a947b1c57d is described below

commit 6a947b1c57d2893ca2aa9da6f3dcdcd3aba3e9d1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Oct 20 11:30:18 2023 +0200

    CAMEL-20017: camel-yaml-dsl - yaml schema generator should not be kebab-case by default.
---
 .../java/org/apache/camel/maven/dsl/yaml/GenerateYamlSchemaMojo.java  | 4 ++--
 dsl/camel-yaml-dsl/camel-yaml-dsl/pom.xml                             | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/src/main/java/org/apache/camel/maven/dsl/yaml/GenerateYamlSchemaMojo.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/src/main/java/org/apache/camel/maven/dsl/yaml/GenerateYamlSchemaMojo.java
index a16380c2d23..dc6b5b3c5f3 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/src/main/java/org/apache/camel/maven/dsl/yaml/GenerateYamlSchemaMojo.java
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-maven-plugin/src/main/java/org/apache/camel/maven/dsl/yaml/GenerateYamlSchemaMojo.java
@@ -67,8 +67,8 @@ import org.jboss.jandex.DotName;
 public class GenerateYamlSchemaMojo extends GenerateYamlSupportMojo {
     @Parameter(required = true)
     private File outputFile;
-    @Parameter(defaultValue = "true")
-    private boolean kebabCase = true;
+    @Parameter(defaultValue = "false")
+    private boolean kebabCase;
     @Parameter(defaultValue = "true")
     private boolean additionalProperties = true;
 
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/pom.xml b/dsl/camel-yaml-dsl/camel-yaml-dsl/pom.xml
index b8d0acb994e..ef7d6840a06 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl/pom.xml
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/pom.xml
@@ -277,7 +277,6 @@
                             <goal>generate-yaml-schema</goal>
                         </goals>
                         <configuration>
-                            <kebabCase>false</kebabCase>
                             <additionalProperties>false</additionalProperties>
                             <outputFile>src/generated/resources/schema/camelYamlDsl.json</outputFile>
                         </configuration>