You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "saravanakumar1987 (via GitHub)" <gi...@apache.org> on 2023/02/04 13:14:56 UTC

[GitHub] [camel] saravanakumar1987 commented on a diff in pull request #9302: CAMEL-19009: camel-gson - Date Format with GsonBuilder

saravanakumar1987 commented on code in PR #9302:
URL: https://github.com/apache/camel/pull/9302#discussion_r1096535468


##########
components/camel-gson/src/test/resources/org/apache/camel/component/gson/SpringGsonJsonDataFormatTest.xml:
##########
@@ -56,6 +57,17 @@
             <to uri="mock:reversePojo"/>
         </route>
 
+        <route>
+            <from uri="direct:inFormatDate"/>
+            <marshal><custom ref="format_date"/></marshal>
+        </route>
+		
+		<route>

Review Comment:
   Addressed



##########
core/camel-core-model/src/main/java/org/apache/camel/model/dataformat/JsonDataFormat.java:
##########
@@ -601,6 +614,16 @@ public Builder contentTypeHeader(boolean contentTypeHeader) {
             return this;
         }
 
+        public Builder dateFormatPattern(String dateFormatPattern) {

Review Comment:
   Addressed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org