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

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new deaf570  Regen
deaf570 is described below

commit deaf5700de164db62cbe863f77e0cf5d5382e6f6
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Nov 18 15:12:10 2021 +0100

    Regen
---
 .../camel/springboot/catalog/dataformats/json-jackson.json |  1 +
 .../camel-jackson-starter/src/main/docs/jackson.json       |  6 ++++++
 .../jackson/springboot/JacksonDataFormatConfiguration.java | 14 ++++++++++++++
 3 files changed, 21 insertions(+)

diff --git 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/json-jackson.json
 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/json-jackson.json
index 6074efd..94b125b 100644
--- 
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/json-jackson.json
+++ 
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/dataformats/json-jackson.json
@@ -35,6 +35,7 @@
     "contentTypeHeader": { "kind": "attribute", "displayName": "Content Type 
Header", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", 
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true, 
"description": "Whether the data format should set the Content-Type header with 
the type from the data format. For example application\/xml for data formats 
marshalling to XML, or application\/json for data formats marshalling to JSON" 
},
     "schemaResolver": { "kind": "attribute", "displayName": "Schema Resolver", 
"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." },
     "autoDiscoverSchemaResolver": { "kind": "attribute", "displayName": "Auto 
Discover Schema Resolver", "required": false, "type": "boolean", "javaType": 
"java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": true, "description": "When not disabled, the SchemaResolver 
will be looked up into the registry" },
+    "namingStrategy": { "kind": "attribute", "displayName": "Naming Strategy", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "If 
set then Jackson will use the the defined Property Naming Strategy.Possible 
values are: LOWER_CAMEL_CASE, LOWER_DOT_CASE, LOWER_CASE, KEBAB_CASE, 
SNAKE_CASE and UPPER_CAMEL_CASE" },
     "id": { "kind": "attribute", "displayName": "Id", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The id of this node" }
   }
 }
diff --git 
a/components-starter/camel-jackson-starter/src/main/docs/jackson.json 
b/components-starter/camel-jackson-starter/src/main/docs/jackson.json
index bd1bf3e..24211bf 100644
--- a/components-starter/camel-jackson-starter/src/main/docs/jackson.json
+++ b/components-starter/camel-jackson-starter/src/main/docs/jackson.json
@@ -102,6 +102,12 @@
       "sourceType": 
"org.apache.camel.component.jackson.springboot.JacksonDataFormatConfiguration"
     },
     {
+      "name": "camel.dataformat.json-jackson.naming-strategy",
+      "type": "java.lang.String",
+      "description": "If set then Jackson will use the the defined Property 
Naming Strategy.Possible values are: LOWER_CAMEL_CASE, LOWER_DOT_CASE, 
LOWER_CASE, KEBAB_CASE, SNAKE_CASE and UPPER_CAMEL_CASE",
+      "sourceType": 
"org.apache.camel.component.jackson.springboot.JacksonDataFormatConfiguration"
+    },
+    {
       "name": "camel.dataformat.json-jackson.object-mapper",
       "type": "java.lang.String",
       "description": "Lookup and use the existing ObjectMapper with the given 
id when using Jackson.",
diff --git 
a/components-starter/camel-jackson-starter/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
 
b/components-starter/camel-jackson-starter/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
index 726a5a6..9fc83be 100644
--- 
a/components-starter/camel-jackson-starter/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
+++ 
b/components-starter/camel-jackson-starter/src/main/java/org/apache/camel/component/jackson/springboot/JacksonDataFormatConfiguration.java
@@ -143,6 +143,12 @@ public class JacksonDataFormatConfiguration
      * When not disabled, the SchemaResolver will be looked up into the 
registry
      */
     private Boolean autoDiscoverSchemaResolver = true;
+    /**
+     * If set then Jackson will use the the defined Property Naming
+     * Strategy.Possible values are: LOWER_CAMEL_CASE, LOWER_DOT_CASE,
+     * LOWER_CASE, KEBAB_CASE, SNAKE_CASE and UPPER_CAMEL_CASE
+     */
+    private String namingStrategy;
 
     public String getObjectMapper() {
         return objectMapper;
@@ -295,4 +301,12 @@ public class JacksonDataFormatConfiguration
     public void setAutoDiscoverSchemaResolver(Boolean 
autoDiscoverSchemaResolver) {
         this.autoDiscoverSchemaResolver = autoDiscoverSchemaResolver;
     }
+
+    public String getNamingStrategy() {
+        return namingStrategy;
+    }
+
+    public void setNamingStrategy(String namingStrategy) {
+        this.namingStrategy = namingStrategy;
+    }
 }
\ No newline at end of file

Reply via email to