[
https://issues.apache.org/jira/browse/CAMEL-18724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634774#comment-17634774
]
Karen Lease commented on CAMEL-18724:
-------------------------------------
[~skin27] I think the problem is in
[eip-options.adoc|https://github.com/apache/camel/blob/main/core/camel-core-engine/src/main/docs/modules/eips/partials/eip-options.adoc]
which generates the html like this
{code:java}
| value.defaultValue ? `${value.defaultValue}` : "" \
{code}
If defaultValue is false, the empty string is used.
But [endpoint
options|https://github.com/apache/camel/blob/main/docs/components/modules/ROOT/partials/component-endpoint-options.adoc]
uses this expression:
{code:java}
|util.valueAsString(value.defaultValue)
{code}
In addition, I note that the options.adoc files for dataformats and languages
use the expression "util.defaultValue(value.defaultValue)" but there is no
defaultValue function defined in
https://github.com/apache/camel-website/blob/main/util/jsonpath-util.js which
perhaps explains why no default values appear in the website for those.
> Add defaults for options for the Throttle EIP in the documentation
> -------------------------------------------------------------------
>
> Key: CAMEL-18724
> URL: https://issues.apache.org/jira/browse/CAMEL-18724
> Project: Camel
> Issue Type: Improvement
> Components: documentation, eip
> Affects Versions: 3.19.0
> Reporter: Raymond
> Priority: Trivial
> Fix For: 3.20.0
>
>
> In the documentation of the throttle EIP:
> [https://camel.apache.org/components/next/eips/throttle-eip.html]
> There are several Boolean options like:
> **
> * *asyncDelayed*
> * *rejectExecution*
> * {*}disabled{*}{*}{{*}}
> According to the documentation, they don't have default options, but every
> optional value has one:
> * *asyncDelayed (Default=true)*
> * *rejectExecution (Default=false)*
> * *disabled (Default=false)*
> **
> See:
> [https://github.com/apache/camel/blob/main/core/camel-core-model/src/generated/resources/org/apache/camel/model/throttle.json]
> Maybe clearer to add them
--
This message was sent by Atlassian Jira
(v8.20.10#820010)