gnodet-bot commented on code in PR #29964:
URL: https://github.com/apache/camel/pull/29964#discussion_r4575169223
##########
components/camel-file/src/main/java/org/apache/camel/component/file/FileConstants.java:
##########
@@ -26,7 +26,8 @@ public final class FileConstants {
@Metadata(label = "consumer", description = "A `Long` value containing the
last modified timestamp of the file.",
javaType = "long")
public static final String FILE_LAST_MODIFIED =
Exchange.FILE_LAST_MODIFIED;
- @Metadata(label = "producer", description = "The local work path",
javaType = "File")
+ @Metadata(label = "producer", description = "Path to the local work file,
if local work directory is used.",
+ javaType = "String")
Review Comment:
⚠️ **Wrong label** — `label = "producer"` should be `label = "consumer"` to
match `FtpConstants`, the actual runtime semantics (this header is set during
file download, not upload), and the generated JSON for all other file-based
components.
```suggestion
@Metadata(label = "consumer", description = "Path to the local work
file, if local work directory is used.",
javaType = "String")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]