You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/08/04 07:04:00 UTC

[jira] [Assigned] (CAMEL-24336) camel-main metadata generator should detect Java enum types for cluster/vault TimeUnit options

     [ https://issues.apache.org/jira/browse/CAMEL-24336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-24336:
-----------------------------------

    Assignee: Claus Ibsen

> camel-main metadata generator should detect Java enum types for cluster/vault TimeUnit options
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24336
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24336
>             Project: Camel
>          Issue Type: Improvement
>          Components: build system, camel-catalog
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>
> The camel-main-configuration-metadata.json generator does not detect Java enum types for certain options. For example:
> * camel.cluster.file.acquireLockDelayUnit
> * camel.cluster.file.acquireLockIntervalUnit
> * camel.cluster.file.clusterDataTaskTimeoutUnit
> These have javaType=java.util.concurrent.TimeUnit which is an enum, but the metadata sets type=object instead of type=enum with the enum values listed (NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, DAYS).
> This prevents tooling (TUI autocomplete, LSP, etc.) from offering value completions for these options.
> The fix should be in the metadata generator to detect when a javaType is a Java enum and populate the type and enum fields accordingly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)