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 13:49:30 UTC

[camel] branch main updated: 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 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 6f9017912e1 CAMEL-18724: fix display of default values in website (#8726)
6f9017912e1 is described below

commit 6f9017912e1e6ac1f9a696cc44199b31991367bd
Author: klease <38...@users.noreply.github.com>
AuthorDate: Fri Nov 18 14:49:18 2022 +0100

    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")]']