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.git
The following commit(s) were added to refs/heads/main by this push:
new 7c8c463f64c Regen for commit 0de522cb2f655e2fcd487b885ddced580d2d71a5
7c8c463f64c is described below
commit 7c8c463f64ca6debbc076cf20b783ca00ace93fa
Author: davsclaus <[email protected]>
AuthorDate: Sun Feb 5 09:14:25 2023 +0000
Regen for commit 0de522cb2f655e2fcd487b885ddced580d2d71a5
Signed-off-by: GitHub <[email protected]>
---
.../resources/org/apache/camel/catalog/dataformats/gson.json | 3 ++-
.../resources/org/apache/camel/catalog/dataformats/jackson.json | 1 +
.../resources/org/apache/camel/catalog/models/json.json | 1 +
.../resources/org/apache/camel/catalog/schemas/camel-spring.xsd | 9 +++++++++
.../apache/camel/component/gson/GsonDataFormatConfigurer.java | 2 ++
.../resources/org/apache/camel/component/gson/gson.json | 3 ++-
.../resources/org/apache/camel/component/jackson/jackson.json | 1 +
.../resources/org/apache/camel/model/dataformat/json.json | 1 +
.../src/generated/java/org/apache/camel/xml/in/ModelParser.java | 1 +
.../apache/camel/dsl/yaml/deserializers/ModelDeserializers.java | 6 ++++++
.../src/generated/resources/schema/camel-yaml-dsl.json | 3 +++
.../src/generated/resources/schema/camelYamlDsl.json | 3 +++
12 files changed, 32 insertions(+), 2 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/gson.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/gson.json
index 213235cab00..e6c629e09b1 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/gson.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/gson.json
@@ -18,6 +18,7 @@
"properties": {
"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." },
"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" },
- "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" }
+ "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"
},
+ "dateFormatPattern": { "kind": "attribute", "displayName": "Date Format
Pattern", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "To
configure the date format while marshall or unmarshall Date fields in JSON
using Gson" }
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/jackson.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/jackson.json
index a4deb7f0ee8..6f99244628d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/jackson.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/jackson.json
@@ -36,6 +36,7 @@
"autoDiscoverSchemaResolver": { "kind": "attribute", "displayName": "Auto
Discover Schema Resolver", "label": "advanced", "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" },
"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"
},
+ "dateFormatPattern": { "kind": "attribute", "displayName": "Date Format
Pattern", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "To
configure the date format while marshall or unmarshall Date fields in JSON
using Gson" },
"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/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 072e27ba6fd..e09f2ecf055 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
@@ -33,6 +33,7 @@
"autoDiscoverSchemaResolver": { "kind": "attribute", "displayName": "Auto
Discover Schema Resolver", "label": "advanced", "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" },
"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"
},
+ "dateFormatPattern": { "kind": "attribute", "displayName": "Date Format
Pattern", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "To
configure the date format while marshall or unmarshall Date fields in JSON
using Gson" },
"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/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 90d66b8b7ca..17e2163d53b 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
@@ -10085,6 +10085,15 @@ true
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
+
+ <xs:attribute name="dateFormatPattern" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en"><![CDATA[
+To configure the date format while marshall or unmarshall Date fields in JSON
+using Gson.
+ ]]></xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
</xs:extension>
diff --git
a/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
b/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
index 05ffbf39e29..8ae2ea57e33 100644
---
a/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
+++
b/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
@@ -22,6 +22,8 @@ public class GsonDataFormatConfigurer extends
PropertyConfigurerSupport implemen
case "unmarshalType":
dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class,
value)); return true;
case "prettyprint":
case "prettyPrint": dataformat.setPrettyPrint(property(camelContext,
boolean.class, value)); return true;
+ case "dateformatpattern":
+ case "dateFormatPattern":
dataformat.setDateFormatPattern(property(camelContext, java.lang.String.class,
value)); return true;
case "contenttypeheader":
case "contentTypeHeader":
dataformat.setContentTypeHeader(property(camelContext, boolean.class, value));
return true;
default: return false;
diff --git
a/components/camel-gson/src/generated/resources/org/apache/camel/component/gson/gson.json
b/components/camel-gson/src/generated/resources/org/apache/camel/component/gson/gson.json
index 213235cab00..e6c629e09b1 100644
---
a/components/camel-gson/src/generated/resources/org/apache/camel/component/gson/gson.json
+++
b/components/camel-gson/src/generated/resources/org/apache/camel/component/gson/gson.json
@@ -18,6 +18,7 @@
"properties": {
"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." },
"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" },
- "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" }
+ "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"
},
+ "dateFormatPattern": { "kind": "attribute", "displayName": "Date Format
Pattern", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "To
configure the date format while marshall or unmarshall Date fields in JSON
using Gson" }
}
}
diff --git
a/components/camel-jackson/src/generated/resources/org/apache/camel/component/jackson/jackson.json
b/components/camel-jackson/src/generated/resources/org/apache/camel/component/jackson/jackson.json
index a4deb7f0ee8..6f99244628d 100644
---
a/components/camel-jackson/src/generated/resources/org/apache/camel/component/jackson/jackson.json
+++
b/components/camel-jackson/src/generated/resources/org/apache/camel/component/jackson/jackson.json
@@ -36,6 +36,7 @@
"autoDiscoverSchemaResolver": { "kind": "attribute", "displayName": "Auto
Discover Schema Resolver", "label": "advanced", "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" },
"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"
},
+ "dateFormatPattern": { "kind": "attribute", "displayName": "Date Format
Pattern", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "To
configure the date format while marshall or unmarshall Date fields in JSON
using Gson" },
"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/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 072e27ba6fd..e09f2ecf055 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
@@ -33,6 +33,7 @@
"autoDiscoverSchemaResolver": { "kind": "attribute", "displayName": "Auto
Discover Schema Resolver", "label": "advanced", "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" },
"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"
},
+ "dateFormatPattern": { "kind": "attribute", "displayName": "Date Format
Pattern", "required": false, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "description": "To
configure the date format while marshall or unmarshall Date fields in JSON
using Gson" },
"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/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 f2591f42e37..c9ee653d863 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
@@ -2194,6 +2194,7 @@ public class ModelParser extends BaseParser {
case "autoDiscoverSchemaResolver":
def.setAutoDiscoverSchemaResolver(val); break;
case "collectionType": def.setCollectionTypeName(val); break;
case "contentTypeHeader": def.setContentTypeHeader(val); break;
+ case "dateFormatPattern": def.setDateFormatPattern(val); break;
case "disableFeatures": def.setDisableFeatures(val); break;
case "enableFeatures": def.setEnableFeatures(val); break;
case "include": def.setInclude(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 f877be981fb..691fb78c799 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
@@ -7345,6 +7345,7 @@ public final class ModelDeserializers extends
YamlDeserializerSupport {
@YamlProperty(name = "auto-discover-schema-resolver", type
= "boolean"),
@YamlProperty(name = "collection-type", type = "string"),
@YamlProperty(name = "content-type-header", type =
"boolean"),
+ @YamlProperty(name = "date-format-pattern", type =
"string"),
@YamlProperty(name = "disable-features", type = "string"),
@YamlProperty(name = "enable-features", type = "string"),
@YamlProperty(name = "id", type = "string"),
@@ -7407,6 +7408,11 @@ public final class ModelDeserializers extends
YamlDeserializerSupport {
target.setContentTypeHeader(val);
break;
}
+ case "date-format-pattern": {
+ String val = asText(node);
+ target.setDateFormatPattern(val);
+ break;
+ }
case "disable-features": {
String val = asText(node);
target.setDisableFeatures(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 131e169adc8..4b015999600 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
@@ -5207,6 +5207,9 @@
"content-type-header" : {
"type" : "boolean"
},
+ "date-format-pattern" : {
+ "type" : "string"
+ },
"disable-features" : {
"type" : "string"
},
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 deb7fcdf882..1849ae50fde 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
@@ -5111,6 +5111,9 @@
"contentTypeHeader" : {
"type" : "boolean"
},
+ "dateFormatPattern" : {
+ "type" : "string"
+ },
"disableFeatures" : {
"type" : "string"
},