You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by kl...@apache.org on 2022/11/18 08:54:45 UTC

[camel] 01/01: CAMEL-18724: fix display of default values in website Corrects "false" not shown for EIP option defaults and all default values for options for languages and dataformats

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

klease pushed a commit to branch CAMEL-18724
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c7be62870d554090c79fecbebbc31b261f6d1006
Author: klease <kl...@cegetel.net>
AuthorDate: Fri Nov 18 09:51:29 2022 +0100

    CAMEL-18724: fix display of default values in website
    Corrects "false" not shown for EIP option defaults and all default values
    for options for languages and dataformats
---
 .../src/main/docs/modules/eips/partials/eip-options.adoc                | 2 +-
 docs/components/modules/dataformats/partials/dataformat-options.adoc    | 2 +-
 docs/components/modules/languages/partials/language-options.adoc        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-options.adoc b/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-options.adoc
index 94b6d6f4862..8301ea1052b 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-options.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-options.adoc
@@ -1,7 +1,7 @@
 :tablespec: width="100%",cols="2,5a,^1,2",options="header"
 :cellformats: '`[#_option_${path[2]}]*${path[2]}*` \
 |util.description(value) \
-| value.defaultValue ? `${value.defaultValue}` : "" \
+|util.valueAsString(value.defaultValue) \
 |util.javaSimpleName(value.javaType)'
 :requires: 'util=util/jsonpath-util.js'
 include::jsonpathcount$example$json/{shortname}.json[queries='optioncount=nodes$.properties[?(@.displayName!="Id" && @.displayName!="Description" && @.displayName!="Expression" && @.displayName!="Outputs")]']
diff --git a/docs/components/modules/dataformats/partials/dataformat-options.adoc b/docs/components/modules/dataformats/partials/dataformat-options.adoc
index c131869f355..206463b89eb 100644
--- a/docs/components/modules/dataformats/partials/dataformat-options.adoc
+++ b/docs/components/modules/dataformats/partials/dataformat-options.adoc
@@ -1,6 +1,6 @@
 :tablespec: width="100%",cols="2a,1m,1m,6a",options="header"
 :cellformats: 'util.boldLink(path[2], "dataformat_option", value.group) \
-|util.defaultValue(value.defaultValue) \
+|util.valueAsString(value.defaultValue) \
 |util.pascalCase(value.type) \
 |util.description(value)'
 include::jsonpathcount$example$json/{shortname}.json[queries='optioncount=nodes$.properties[?(@.displayName!="Id")]']
diff --git a/docs/components/modules/languages/partials/language-options.adoc b/docs/components/modules/languages/partials/language-options.adoc
index 629cda3b419..90cd0788533 100644
--- a/docs/components/modules/languages/partials/language-options.adoc
+++ b/docs/components/modules/languages/partials/language-options.adoc
@@ -1,6 +1,6 @@
 :tablespec: width="100%",cols="2a,1m,1m,6a",options="header"
 :cellformats: 'util.boldLink(path[2], "language_option", value.group) \
-|util.defaultValue(value.defaultValue) \
+|util.valueAsString(value.defaultValue) \
 |util.pascalCase(value.type) \
 |util.description(value)'
 include::jsonpathcount$example$json/{shortname}.json[queries='optioncount=nodes$.properties[?(@.kind=="attribute" && @.displayName!="Id")]']