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 14:28:35 UTC

[camel] branch camel-3.14.x updated: Backport CAMEL-18724: fix display of default values in website (#8726)

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

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


The following commit(s) were added to refs/heads/camel-3.14.x by this push:
     new d1dcf589e4c Backport CAMEL-18724: fix display of default values in website (#8726)
d1dcf589e4c is described below

commit d1dcf589e4c8a38d2e2cf34e7b95bc06594ec671
Author: klease <kl...@cegetel.net>
AuthorDate: Fri Nov 18 15:27:25 2022 +0100

    Backport CAMEL-18724: fix display of default values in website (#8726)
    
    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")]']