Claus Ibsen created CAMEL-24336:
-----------------------------------

             Summary: 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
            Reporter: Claus Ibsen


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)

Reply via email to