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

coheigea pushed a commit to branch camel-2.25.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 1aba578d888315fb7dfa3d49f65765afe3a01a3e
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Tue Feb 18 14:07:26 2020 +0100

    CAMEL-14532 - In xml model the types must be String
---
 .../org/apache/camel/model/dataformat/YAMLDataFormat.java  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/camel-core/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java
 
b/camel-core/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java
index 28b7fae..325e82e 100644
--- 
a/camel-core/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java
+++ 
b/camel-core/src/main/java/org/apache/camel/model/dataformat/YAMLDataFormat.java
@@ -68,10 +68,10 @@ public class YAMLDataFormat extends DataFormatDefinition {
     private List<YAMLTypeFilterDefinition> typeFilters;
     @XmlAttribute
     @Metadata(javaType = "java.lang.Integer", defaultValue = "50")
-    private int maxAliasesForCollections = 50;
+    private String maxAliasesForCollections = "50";
     @XmlAttribute
-    @Metadata(javaType = "java.lang.Boolean", defaultValue = "false")
-    private boolean allowRecursiveKeys;
+    @Metadata(javaType = "java.lang.Boolean")
+    private String allowRecursiveKeys;
 
     public YAMLDataFormat() {
         this(YAMLLibrary.SnakeYAML);
@@ -217,25 +217,25 @@ public class YAMLDataFormat extends DataFormatDefinition {
         return typeFilters;
     }
 
-    public int getMaxAliasesForCollections() {
+    public String getMaxAliasesForCollections() {
         return maxAliasesForCollections;
     }
 
     /**
      * Set the maximum amount of aliases allowed for collections.
      */
-    public void setMaxAliasesForCollections(int maxAliasesForCollections) {
+    public void setMaxAliasesForCollections(String maxAliasesForCollections) {
         this.maxAliasesForCollections = maxAliasesForCollections;
     }
 
-    public boolean isAllowRecursiveKeys() {
+    public String isAllowRecursiveKeys() {
         return allowRecursiveKeys;
     }
 
     /**
      * Set whether recursive keys are allowed.
      */
-    public void setAllowRecursiveKeys(boolean allowRecursiveKeys) {
+    public void setAllowRecursiveKeys(String allowRecursiveKeys) {
         this.allowRecursiveKeys = allowRecursiveKeys;
     }
 

Reply via email to