oscerd opened a new pull request, #25785: URL: https://github.com/apache/camel/pull/25785
# CAMEL-24518: validate at least one analysis feature is enabled `WatsonLanguageProducer.buildFeatures()` builds a `Features` object from six boolean analysis flags (sentiment, emotion, entities, keywords, concepts, categories). If all six are disabled, an empty `Features` is passed to the NLU `analyze` call, which the Watson service rejects with an opaque HTTP 400. The common path is protected by three default-`true` flags, but a user who explicitly disables them hits the 400 instead of a clear error. ## Fix Validate that at least one analysis feature is enabled before calling the service, throwing a clear `IllegalArgumentException` otherwise. ## Testing Method-body change; verified with a module build (`BUILD SUCCESS`, no generated-file drift). --- _Claude Code on behalf of oscerd_ -- 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]
