gnodet-bot commented on code in PR #30797:
URL: https://github.com/apache/camel/pull/30797#discussion_r4698027665


##########
components/camel-google/camel-google-firestore/src/main/java/org/apache/camel/component/google/firestore/GoogleFirestoreConstants.java:
##########
@@ -40,7 +40,7 @@ public final class GoogleFirestoreConstants {
     public static final String QUERY_FIELD = "CamelGoogleFirestoreQueryField";
 
     @Metadata(label = "producer",
-              description = "The operator for query filtering (e.g., ==, <, >, 
<=, >=, !=, array-contains, in, array-contains-any, not-in).",
+              description = "The operator for query filtering (e.g., ==, !=, 
less than, greater than, less than or equal to, greater than or equal to, 
array-contains, in, array-contains-any, not-in).",

Review Comment:
   ⚠️ **Description rewrite drops the actual operator values**
   
   The original description listed the actual string values (`<`, `>`, `<=`, 
`>=`) that users pass to the header. The rewrite replaces them with English 
prose ("less than", "greater than", etc.) — but those are **not** the values 
users should pass to the header.
   
   The `applyWhereClause` method also accepts short aliases: `lt`, `lte`, `gt`, 
`gte`. These are unambiguous, they are the actual accepted values, and they 
don't contain angle brackets:
   
   ```suggestion
                 description = "The operator for query filtering (e.g., ==, !=, 
lt, gt, lte, gte, array-contains, in, array-contains-any, not-in).",
   ```



##########
components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppConstants.java:
##########
@@ -92,7 +92,7 @@ public interface SmppConstants {
               javaType = "String")
     String ENCODING = "CamelSmppEncoding";
     @Metadata(description = "*Producer:* *only for SubmitMultiSm* The errors 
which\n" +
-                            "occurred by sending the short message(s) the form 
`Map<String, List<Map<String, Object>>>` (messageID : (destAddr :\n"
+                            "occurred by sending the short message(s) the form 
of a Map of Lists of Maps (messageID : (destAddr :\n"

Review Comment:
   💡 **Consider preserving type parameter information**
   
   "the form of a Map of Lists of Maps" drops all type parameter detail. The 
original `Map<String, List<Map<String, Object>>>` told users the key type is 
`String` at the outer level, and the inner maps have `String` keys and `Object` 
values — information that matters when writing deserialization code.
   
   A middle ground that avoids angle brackets while preserving the structure:
   
   ```suggestion
                               "occurred by sending the short message(s) in the 
form of a Map (String → List<Map (String → Object)>) (messageID : (destAddr :\n"
   ```
   
   Or alternatively keep it simple but typed: `"...in the form of 
Map&lt;String, List&lt;Map&lt;String, Object&gt;&gt;&gt;..."` using HTML 
entities, which `sanitizeDescription` does not strip.



-- 
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]

Reply via email to