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/02/03 07:59:27 UTC

[camel] 02/02: Remove some of the xstream leftovers in json data formats

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

commit 54684ea1b0a876fa3963fbf66b96962c6a60a034
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Feb 3 08:59:09 2023 +0100

    Remove some of the xstream leftovers in json data formats
---
 .../org/apache/camel/catalog/models/json.json      |  3 +-
 .../apache/camel/catalog/schemas/camel-spring.xsd  | 19 ------
 .../src/main/docs/spring-ws-component.adoc         |  4 +-
 .../org/apache/camel/model/dataformat/json.json    |  3 +-
 .../camel/model/dataformat/JsonDataFormat.java     | 76 ----------------------
 .../apache/camel/model/dataformat/JsonLibrary.java |  3 +-
 .../reifier/dataformat/JsonDataFormatReifier.java  | 18 +----
 .../java/org/apache/camel/xml/in/ModelParser.java  |  1 -
 .../dsl/yaml/deserializers/ModelDeserializers.java |  8 +--
 .../generated/resources/schema/camel-yaml-dsl.json |  5 +-
 .../generated/resources/schema/camelYamlDsl.json   |  5 +-
 11 files changed, 10 insertions(+), 135 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/json.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/json.json
index 965257a9e2f..072e27ba6fd 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/json.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/json.json
@@ -16,7 +16,7 @@
     "useDefaultObjectMapper": { "kind": "attribute", "displayName": "Use Default Object Mapper", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to lookup and use default Jackson ObjectMapper from the registry." },
     "autoDiscoverObjectMapper": { "kind": "attribute", "displayName": "Auto Discover Object Mapper", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If set to true then Jackson will look for an objectMapper to use from the registry" },
     "prettyPrint": { "kind": "attribute", "displayName": "Pretty Print", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable pretty printing output nicely formatted. Is by default false." },
-    "library": { "kind": "attribute", "displayName": "Library", "required": false, "type": "enum", "javaType": "org.apache.camel.model.dataformat.JsonLibrary", "enum": [ "fastjson", "gson", "jackson", "johnzon", "jsonb", "x-stream" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Jackson", "description": "Which json library to use." },
+    "library": { "kind": "attribute", "displayName": "Library", "required": false, "type": "enum", "javaType": "org.apache.camel.model.dataformat.JsonLibrary", "enum": [ "fastjson", "gson", "jackson", "johnzon", "jsonb" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Jackson", "description": "Which json library to use." },
     "unmarshalType": { "kind": "attribute", "displayName": "Unmarshal Type", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Class name of the java type to use when unmarshalling" },
     "jsonView": { "kind": "attribute", "displayName": "Json View", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output. With Jackson you can use JSON views to accomplish this. This option is to refer to the class which has JsonView annotations" },
     "include": { "kind": "attribute", "displayName": "Include", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "If you want to marshal a pojo to JSON, and the pojo has some fields with null values. And you want to skip these null values, you can set this option to NON_NULL" },
@@ -27,7 +27,6 @@
     "moduleRefs": { "kind": "attribute", "displayName": "Module Refs", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use custom Jackson modules referred from the Camel registry. Multiple modules can be separated by comma." },
     "enableFeatures": { "kind": "attribute", "displayName": "Enable Features", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeature,  [...]
     "disableFeatures": { "kind": "attribute", "displayName": "Disable Features", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeatur [...]
-    "permissions": { "kind": "attribute", "displayName": "Permissions", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml\/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in  [...]
     "allowUnmarshallType": { "kind": "attribute", "displayName": "Allow Unmarshall Type", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used." },
     "timezone": { "kind": "attribute", "displayName": "Timezone", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "If set then Jackson will use the Timezone when marshalling\/unmarshalling. This option will have no effect on the others Json DataFormat, like gson and fastjson." },
     "schemaResolver": { "kind": "attribute", "displayName": "Schema Resolver", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Optional schema resolver used to lookup schemas for the data in transit." },
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
index e65bb48c4ce..90d66b8b7ca 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
@@ -10028,23 +10028,6 @@ by comma.
           </xs:annotation>
         </xs:attribute>
                 
-        <xs:attribute name="permissions" type="xs:string">
-          <xs:annotation>
-            <xs:documentation xml:lang="en"><![CDATA[
-Adds permissions that controls which Java packages and classes XStream is
-allowed to use during unmarshal from xml/json to Java beans. A permission must
-be configured either here or globally using a JVM system property. The
-permission can be specified in a syntax where a plus sign is allow, and minus
-sign is deny. Wildcards is supported by using . as prefix. For example to allow
-com.foo and all subpackages then specfy com.foo.. Multiple permissions can be
-configured separated by comma, such as com.foo.,-com.foo.bar.MySecretBean. The
-following default permission is always included: -,java.lang.,java.util. unless
-its overridden by specifying a JVM system property with they key
-org.apache.camel.xstream.permissions.
-            ]]></xs:documentation>
-          </xs:annotation>
-        </xs:attribute>
-                
         <xs:attribute name="allowUnmarshallType" type="xs:string">
           <xs:annotation>
             <xs:documentation xml:lang="en"><![CDATA[
@@ -21348,8 +21331,6 @@ multiple certificates.
       <xs:enumeration value="Johnzon"/>
             
       <xs:enumeration value="Jsonb"/>
-            
-      <xs:enumeration value="XStream"/>
           
     </xs:restriction>
       
diff --git a/components/camel-spring-ws/src/main/docs/spring-ws-component.adoc b/components/camel-spring-ws/src/main/docs/spring-ws-component.adoc
index 1d98c05be60..0fb6ea0797b 100644
--- a/components/camel-spring-ws/src/main/docs/spring-ws-component.adoc
+++ b/components/camel-spring-ws/src/main/docs/spring-ws-component.adoc
@@ -487,8 +487,8 @@ An example of a route using `beanname`:
 == POJO (un)marshalling
 
 Camel's pluggable data formats offer support for
-pojo/xml marshalling using libraries such as JAXB, XStream, JibX, Castor
-and XMLBeans. You can use these data formats in your route to sent and
+pojo/xml marshalling using libraries such as JAXB.
+You can use these data formats in your route to sent and
 receive pojo's, to and from web services.
 
 When _accessing_ web services you can marshal the request and unmarshal
diff --git a/core/camel-core-model/src/generated/resources/org/apache/camel/model/dataformat/json.json b/core/camel-core-model/src/generated/resources/org/apache/camel/model/dataformat/json.json
index 965257a9e2f..072e27ba6fd 100644
--- a/core/camel-core-model/src/generated/resources/org/apache/camel/model/dataformat/json.json
+++ b/core/camel-core-model/src/generated/resources/org/apache/camel/model/dataformat/json.json
@@ -16,7 +16,7 @@
     "useDefaultObjectMapper": { "kind": "attribute", "displayName": "Use Default Object Mapper", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to lookup and use default Jackson ObjectMapper from the registry." },
     "autoDiscoverObjectMapper": { "kind": "attribute", "displayName": "Auto Discover Object Mapper", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If set to true then Jackson will look for an objectMapper to use from the registry" },
     "prettyPrint": { "kind": "attribute", "displayName": "Pretty Print", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable pretty printing output nicely formatted. Is by default false." },
-    "library": { "kind": "attribute", "displayName": "Library", "required": false, "type": "enum", "javaType": "org.apache.camel.model.dataformat.JsonLibrary", "enum": [ "fastjson", "gson", "jackson", "johnzon", "jsonb", "x-stream" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Jackson", "description": "Which json library to use." },
+    "library": { "kind": "attribute", "displayName": "Library", "required": false, "type": "enum", "javaType": "org.apache.camel.model.dataformat.JsonLibrary", "enum": [ "fastjson", "gson", "jackson", "johnzon", "jsonb" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Jackson", "description": "Which json library to use." },
     "unmarshalType": { "kind": "attribute", "displayName": "Unmarshal Type", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Class name of the java type to use when unmarshalling" },
     "jsonView": { "kind": "attribute", "displayName": "Json View", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output. With Jackson you can use JSON views to accomplish this. This option is to refer to the class which has JsonView annotations" },
     "include": { "kind": "attribute", "displayName": "Include", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "If you want to marshal a pojo to JSON, and the pojo has some fields with null values. And you want to skip these null values, you can set this option to NON_NULL" },
@@ -27,7 +27,6 @@
     "moduleRefs": { "kind": "attribute", "displayName": "Module Refs", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use custom Jackson modules referred from the Camel registry. Multiple modules can be separated by comma." },
     "enableFeatures": { "kind": "attribute", "displayName": "Enable Features", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeature,  [...]
     "disableFeatures": { "kind": "attribute", "displayName": "Disable Features", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeatur [...]
-    "permissions": { "kind": "attribute", "displayName": "Permissions", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from xml\/json to Java beans. A permission must be configured either here or globally using a JVM system property. The permission can be specified in  [...]
     "allowUnmarshallType": { "kind": "attribute", "displayName": "Allow Unmarshall Type", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used." },
     "timezone": { "kind": "attribute", "displayName": "Timezone", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "If set then Jackson will use the Timezone when marshalling\/unmarshalling. This option will have no effect on the others Json DataFormat, like gson and fastjson." },
     "schemaResolver": { "kind": "attribute", "displayName": "Schema Resolver", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Optional schema resolver used to lookup schemas for the data in transit." },
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java b/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java
index 67b5fdda2b8..7d99a0fc744 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java
@@ -85,9 +85,6 @@ public class JsonDataFormat extends DataFormatDefinition implements ContentTypeH
     @Metadata(label = "advanced")
     private String disableFeatures;
     @XmlAttribute
-    @Metadata(label = "advanced")
-    private String permissions;
-    @XmlAttribute
     @Metadata(javaType = "java.lang.Boolean")
     private String allowUnmarshallType;
     @XmlAttribute
@@ -138,7 +135,6 @@ public class JsonDataFormat extends DataFormatDefinition implements ContentTypeH
         this.moduleRefs = builder.moduleRefs;
         this.enableFeatures = builder.enableFeatures;
         this.disableFeatures = builder.disableFeatures;
-        this.permissions = builder.permissions;
         this.allowUnmarshallType = builder.allowUnmarshallType;
         this.timezone = builder.timezone;
         this.schemaResolver = builder.schemaResolver;
@@ -367,45 +363,6 @@ public class JsonDataFormat extends DataFormatDefinition implements ContentTypeH
         this.disableFeatures = disableFeatures;
     }
 
-    public String getPermissions() {
-        return permissions;
-    }
-
-    /**
-     * Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal from
-     * xml/json to Java beans.
-     * <p/>
-     * A permission must be configured either here or globally using a JVM system property. The permission can be
-     * specified in a syntax where a plus sign is allow, and minus sign is deny. <br/>
-     * Wildcards is supported by using <tt>.*</tt> as prefix. For example to allow <tt>com.foo</tt> and all subpackages
-     * then specfy <tt>+com.foo.*</tt>. Multiple permissions can be configured separated by comma, such as
-     * <tt>+com.foo.*,-com.foo.bar.MySecretBean</tt>. <br/>
-     * The following default permission is always included: <tt>"-*,java.lang.*,java.util.*"</tt> unless its overridden
-     * by specifying a JVM system property with they key <tt>org.apache.camel.xstream.permissions</tt>.
-     */
-    public void setPermissions(String permissions) {
-        this.permissions = permissions;
-    }
-
-    /**
-     * To add permission for the given pojo classes.
-     *
-     * @param type the pojo class(es) xstream should use as allowed permission
-     * @see        #setPermissions(String)
-     */
-    public void setPermissions(Class<?>... type) {
-        setPermissions(toString(type));
-    }
-
-    private static String toString(Class<?>[] type) {
-        StringJoiner permissionsBuilder = new StringJoiner(",");
-        for (Class<?> clazz : type) {
-            permissionsBuilder.add("+");
-            permissionsBuilder.add(clazz.getName());
-        }
-        return permissionsBuilder.toString();
-    }
-
     public String getAllowUnmarshallType() {
         return allowUnmarshallType;
     }
@@ -577,11 +534,6 @@ public class JsonDataFormat extends DataFormatDefinition implements ContentTypeH
         return this;
     }
 
-    public JsonDataFormat permissions(String permissions) {
-        this.permissions = permissions;
-        return this;
-    }
-
     public JsonDataFormat allowUnmarshallType(boolean allowUnmarshallType) {
         return allowUnmarshallType(Boolean.toString(allowUnmarshallType));
     }
@@ -634,7 +586,6 @@ public class JsonDataFormat extends DataFormatDefinition implements ContentTypeH
         private String moduleRefs;
         private String enableFeatures;
         private String disableFeatures;
-        private String permissions;
         private String allowUnmarshallType;
         private String timezone;
         private String schemaResolver;
@@ -844,33 +795,6 @@ public class JsonDataFormat extends DataFormatDefinition implements ContentTypeH
             return this;
         }
 
-        /**
-         * Adds permissions that controls which Java packages and classes XStream is allowed to use during unmarshal
-         * from xml/json to Java beans.
-         * <p/>
-         * A permission must be configured either here or globally using a JVM system property. The permission can be
-         * specified in a syntax where a plus sign is allow, and minus sign is deny. <br/>
-         * Wildcards is supported by using <tt>.*</tt> as prefix. For example to allow <tt>com.foo</tt> and all
-         * subpackages then specfy <tt>+com.foo.*</tt>. Multiple permissions can be configured separated by comma, such
-         * as <tt>+com.foo.*,-com.foo.bar.MySecretBean</tt>. <br/>
-         * The following default permission is always included: <tt>"-*,java.lang.*,java.util.*"</tt> unless its
-         * overridden by specifying a JVM system property with they key <tt>org.apache.camel.xstream.permissions</tt>.
-         */
-        public Builder permissions(String permissions) {
-            this.permissions = permissions;
-            return this;
-        }
-
-        /**
-         * To add permission for the given pojo classes.
-         *
-         * @param type the pojo class(es) xstream should use as allowed permission
-         * @see        #setPermissions(String)
-         */
-        public Builder permissions(Class<?>... type) {
-            return permissions(JsonDataFormat.toString(type));
-        }
-
         /**
          * If enabled then Jackson is allowed to attempt to use the CamelJacksonUnmarshalType header during the
          * unmarshalling.
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonLibrary.java b/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonLibrary.java
index 931ded22c95..3e39209ec76 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonLibrary.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonLibrary.java
@@ -30,8 +30,7 @@ public enum JsonLibrary {
     Gson("gson"),
     Jackson("jackson"),
     Johnzon("johnzon"),
-    Jsonb("jsonb"),
-    XStream("xstreamJson");
+    Jsonb("jsonb");
 
     private final String dataFormatName;
 
diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/JsonDataFormatReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/JsonDataFormatReifier.java
index 7bbfb85db04..6239826ad75 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/JsonDataFormatReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/JsonDataFormatReifier.java
@@ -44,31 +44,17 @@ public class JsonDataFormatReifier extends DataFormatReifier<JsonDataFormat> {
         } else {
             properties.put("jsonView", definition.getJsonView());
         }
-        if (definition.getLibrary() != JsonLibrary.XStream) {
-            properties.put("unmarshalType", or(definition.getUnmarshalType(), definition.getUnmarshalTypeName()));
-        }
+        properties.put("unmarshalType", or(definition.getUnmarshalType(), definition.getUnmarshalTypeName()));
         properties.put("prettyPrint", definition.getPrettyPrint());
         properties.put("include", definition.getInclude());
         properties.put("allowJmsType", definition.getAllowJmsType());
-        if (definition.getLibrary() != JsonLibrary.XStream) {
-            properties.put("collectionType", or(definition.getCollectionType(), definition.getCollectionTypeName()));
-        }
+        properties.put("collectionType", or(definition.getCollectionType(), definition.getCollectionTypeName()));
         properties.put("useList", definition.getUseList());
         properties.put("moduleClassNames", definition.getModuleClassNames());
         properties.put("moduleRefs", definition.getModuleRefs());
         properties.put("enableFeatures", definition.getEnableFeatures());
         properties.put("disableFeatures", definition.getDisableFeatures());
         properties.put("allowUnmarshallType", definition.getAllowUnmarshallType());
-        if (definition.getLibrary() == JsonLibrary.XStream && definition.getPermissions() == null) {
-            // if we have the unmarshal type, but no permission set, then use it to be allowed
-            String type = definition.getUnmarshalTypeName();
-            if (type == null && definition.getUnmarshalType() != null) {
-                type = asTypeName(definition.getUnmarshalType());
-            }
-            properties.put("permissions", type);
-            // xstream has no unmarshalType option
-            properties.remove("unmarshalType");
-        }
         if (definition.getLibrary() == JsonLibrary.Jackson) {
             properties.put("schemaResolver", asRef(definition.getSchemaResolver()));
             properties.put("autoDiscoverSchemaResolver", definition.getAutoDiscoverSchemaResolver());
diff --git a/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java b/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java
index a7eccace2f5..f2591f42e37 100644
--- a/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java
+++ b/core/camel-xml-io/src/generated/java/org/apache/camel/xml/in/ModelParser.java
@@ -2203,7 +2203,6 @@ public class ModelParser extends BaseParser {
                 case "moduleRefs": def.setModuleRefs(val); break;
                 case "namingStrategy": def.setNamingStrategy(val); break;
                 case "objectMapper": def.setObjectMapper(val); break;
-                case "permissions": def.setPermissions(val); break;
                 case "prettyPrint": def.setPrettyPrint(val); break;
                 case "schemaResolver": def.setSchemaResolver(val); break;
                 case "timezone": def.setTimezone(val); break;
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
index a501feee39b..f877be981fb 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
@@ -7350,12 +7350,11 @@ public final class ModelDeserializers extends YamlDeserializerSupport {
                     @YamlProperty(name = "id", type = "string"),
                     @YamlProperty(name = "include", type = "string"),
                     @YamlProperty(name = "json-view", type = "string"),
-                    @YamlProperty(name = "library", type = "enum:Fastjson,Gson,Jackson,Johnzon,Jsonb,XStream"),
+                    @YamlProperty(name = "library", type = "enum:Fastjson,Gson,Jackson,Johnzon,Jsonb"),
                     @YamlProperty(name = "module-class-names", type = "string"),
                     @YamlProperty(name = "module-refs", type = "string"),
                     @YamlProperty(name = "naming-strategy", type = "string"),
                     @YamlProperty(name = "object-mapper", type = "string"),
-                    @YamlProperty(name = "permissions", type = "string"),
                     @YamlProperty(name = "pretty-print", type = "boolean"),
                     @YamlProperty(name = "schema-resolver", type = "string"),
                     @YamlProperty(name = "timezone", type = "string"),
@@ -7457,11 +7456,6 @@ public final class ModelDeserializers extends YamlDeserializerSupport {
                     target.setObjectMapper(val);
                     break;
                 }
-                case "permissions": {
-                    String val = asText(node);
-                    target.setPermissions(val);
-                    break;
-                }
                 case "pretty-print": {
                     String val = asText(node);
                     target.setPrettyPrint(val);
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json
index 6af7e948c74..131e169adc8 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camel-yaml-dsl.json
@@ -5224,7 +5224,7 @@
           },
           "library" : {
             "type" : "string",
-            "enum" : [ "Fastjson", "Gson", "Jackson", "Johnzon", "Jsonb", "XStream" ]
+            "enum" : [ "Fastjson", "Gson", "Jackson", "Johnzon", "Jsonb" ]
           },
           "module-class-names" : {
             "type" : "string"
@@ -5238,9 +5238,6 @@
           "object-mapper" : {
             "type" : "string"
           },
-          "permissions" : {
-            "type" : "string"
-          },
           "pretty-print" : {
             "type" : "boolean"
           },
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
index b794a8d4c3a..deb7fcdf882 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
@@ -5128,7 +5128,7 @@
           },
           "library" : {
             "type" : "string",
-            "enum" : [ "Fastjson", "Gson", "Jackson", "Johnzon", "Jsonb", "XStream" ]
+            "enum" : [ "Fastjson", "Gson", "Jackson", "Johnzon", "Jsonb" ]
           },
           "moduleClassNames" : {
             "type" : "string"
@@ -5142,9 +5142,6 @@
           "objectMapper" : {
             "type" : "string"
           },
-          "permissions" : {
-            "type" : "string"
-          },
           "prettyPrint" : {
             "type" : "boolean"
           },