Thanks Andrea!
Reverted the commit, and please see my questions below
https://issues.apache.org/jira/browse/CAMEL-15738?focusedCommentId=17219130&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17219130

Freeman

On Thu, Oct 22, 2020 at 11:18 AM Andrea Cosentino <anco...@gmail.com> wrote:

> This needs to be changed at javadoc level, the documentation is
> autogenerated
>
> Il gio 22 ott 2020, 17:10 <ff...@apache.org> ha scritto:
>
> > This is an automated email from the ASF dual-hosted git repository.
> >
> > ffang pushed a commit to branch master
> > in repository https://gitbox.apache.org/repos/asf/camel.git
> >
> >
> > The following commit(s) were added to refs/heads/master by this push:
> >      new cbfc4c6
> >
> [CAMEL-15738]camel-fastjson|camel-fhir|camel-gson|camel-jackson|camel-jacksonxml|camel-jaxb|camel-xstream
> > doc mismatch the value in src code
> > cbfc4c6 is described below
> >
> > commit cbfc4c6809b0ae183ad7027c785bde29c300341e
> > Author: Freeman Fang <freeman.f...@gmail.com>
> > AuthorDate: Thu Oct 22 11:10:30 2020 -0400
> >
> >
> >
> [CAMEL-15738]camel-fastjson|camel-fhir|camel-gson|camel-jackson|camel-jacksonxml|camel-jaxb|camel-xstream
> > doc mismatch the value in src code
> > ---
> >  components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
>  |
> > 2 +-
> >  .../camel-fhir-component/src/main/docs/fhirXml-dataformat.adoc
> |
> > 2 +-
> >  components/camel-gson/src/main/docs/json-gson-dataformat.adoc
>  |
> > 2 +-
> >  components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc
>  |
> > 2 +-
> >  components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
> |
> > 2 +-
> >  components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
> |
> > 2 +-
> >  components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
>  |
> > 2 +-
> >  7 files changed, 7 insertions(+), 7 deletions(-)
> >
> > diff --git
> > a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
> > b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
> > index d6587d2..31f6759 100644
> > ---
> a/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
> > +++
> b/components/camel-fastjson/src/main/docs/json-fastjson-dataformat.adoc
> > @@ -31,7 +31,7 @@ The JSON Fastjson dataformat supports 2 options, which
> > are listed below.
> >  |===
> >  | Name | Default | Java Type | Description
> >  | unmarshalTypeName |  | String | Class name of the java type to use
> when
> > unmarshalling
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> >
> > diff --git
> >
> a/components/camel-fhir/camel-fhir-component/src/main/docs/fhirXml-dataformat.adoc
> >
> b/components/camel-fhir/camel-fhir-component/src/main/docs/fhirXml-dataformat.adoc
> > index 5000efa..eeb79ea 100644
> > ---
> >
> a/components/camel-fhir/camel-fhir-component/src/main/docs/fhirXml-dataformat.adoc
> > +++
> >
> b/components/camel-fhir/camel-fhir-component/src/main/docs/fhirXml-dataformat.adoc
> > @@ -35,6 +35,6 @@ The FHIR XML dataformat supports 13 options, which are
> > listed below.
> >  | summaryMode | false | Boolean | If set to true (default is false) only
> > elements marked by the FHIR specification as being summary elements will
> be
> > included.
> >  | suppressNarratives | false | Boolean | If set to true (default is
> > false), narratives will not be included in the encoded values.
> >  | dontStripVersionsFromReferencesAtPaths |  | List | If supplied
> > value(s), any resource references at the specified paths will have their
> > resource versions encoded instead of being automatically stripped during
> > the encoding process. This setting has no effect on the parsing process.
> > This method provides a finer-grained level of control than
> > setStripVersionsFromReferences(String) and any paths specified by this
> > method will be encoded even if setStripVersionsFromReferences(String) has
> > been [...]
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> > diff --git
> a/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
> > b/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
> > index d23112f..f69ee0d 100644
> > --- a/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
> > +++ b/components/camel-gson/src/main/docs/json-gson-dataformat.adoc
> > @@ -32,7 +32,7 @@ The JSON Gson dataformat supports 3 options, which are
> > listed below.
> >  | Name | Default | Java Type | Description
> >  | prettyPrint | false | Boolean | To enable pretty printing output
> nicely
> > formatted. Is by default false.
> >  | unmarshalTypeName |  | String | Class name of the java type to use
> when
> > unmarshalling
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> >
> > diff --git
> > a/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc
> > b/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc
> > index 7c75c47..3f7a902 100644
> > --- a/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc
> > +++ b/components/camel-jackson/src/main/docs/json-jackson-dataformat.adoc
> > @@ -47,7 +47,7 @@ The JSON Jackson dataformat supports 17 options, which
> > are listed below.
> >  | allowUnmarshallType | false | Boolean | 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 |  | String | If set then Jackson will use the Timezone when
> > marshalling/unmarshalling. This option will have no effect on the others
> > Json DataFormat, like gson, fastjson and xstream.
> >  | autoDiscoverObjectMapper | false | Boolean | If set to true then
> > Jackson will lookup for an objectMapper into the registry
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> >
> > diff --git
> > a/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
> > b/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
> > index d10f4ef..14ee25a 100644
> > ---
> a/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
> > +++
> b/components/camel-jacksonxml/src/main/docs/jacksonxml-dataformat.adoc
> > @@ -63,7 +63,7 @@ The JacksonXML dataformat supports 15 options, which
> are
> > listed below.
> >  | enableFeatures |  | String | 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, or
> > com.fasterxml.jackson.databind.MapperFeature Multiple features can be
> > separated by comma
> >  | disableFeatures |  | String | 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.DeserializationFeature, or
> > com.fasterxml.jackson.databind.MapperFeature Multiple features can be
> > separated by comma
> >  | allowUnmarshallType | false | Boolean | 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.
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> >
> > diff --git a/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
> > b/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
> > index c6e7f6c..dbea998 100644
> > --- a/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
> > +++ b/components/camel-jaxb/src/main/docs/jaxb-dataformat.adoc
> > @@ -42,7 +42,7 @@ The JAXB dataformat supports 19 options, which are
> > listed below.
> >  | schemaLocation |  | String | To define the location of the schema
> >  | noNamespaceSchemaLocation |  | String | To define the location of the
> > namespaceless schema
> >  | jaxbProviderProperties |  | String | Refers to a custom java.util.Map
> > to lookup in the registry containing custom JAXB provider properties to
> be
> > used with the JAXB marshaller.
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> >
> > diff --git
> > a/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
> > b/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
> > index 1c3e527..08371ef 100644
> > --- a/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
> > +++ b/components/camel-xstream/src/main/docs/json-xstream-dataformat.adoc
> > @@ -43,7 +43,7 @@ The JSON XStream dataformat supports 3 options, which
> > are listed below.
> >  | Name | Default | Java Type | Description
> >  | prettyPrint | false | Boolean | To enable pretty printing output
> nicely
> > formatted. Is by default false.
> >  | dropRootNode | false | Boolean | Whether XStream will drop the root
> > node in the generated JSon. You may want to enable this when using POJOs;
> > as then the written object will include the class name as root node,
> which
> > is often not intended to be written in the JSON output.
> > -| contentTypeHeader | false | Boolean | Whether the data format should
> > set the Content-Type header with the type from the data format if the
> data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> > +| contentTypeHeader | true | Boolean | Whether the data format should
> set
> > the Content-Type header with the type from the data format if the data
> > format is capable of doing so. For example application/xml for data
> formats
> > marshalling to XML, or application/json for data formats marshalling to
> > JSON etc.
> >  |===
> >  // dataformat options: END
> >
> >
> >
>

Reply via email to