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 2025/06/19 14:32:00 UTC

[jira] [Resolved] (CAMEL-21437) rest-dsl - More logs in case of an invalid json object when using client request validator

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

Claus Ibsen resolved CAMEL-21437.
---------------------------------
    Fix Version/s: 4.13.0
       Resolution: Information Provided

You can use camel-openapi-validator that logs more fine grained errors.

And on the server side you can see this in DEBUG logging levels

> rest-dsl - More logs in case of an invalid json object when using client request validator
> ------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21437
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21437
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 4.8.0, 4.8.1
>            Reporter: Olivier Jacquemart
>            Priority: Minor
>             Fix For: 4.13.0
>
>
> At the moment, the [DefaultRestClientRequestValidator|https://github.com/apache/camel/blob/main/core/camel-support/src/main/java/org/apache/camel/support/processor/DefaultRestClientRequestValidator.java] not give any information in case of an invalid json object.
> It could be nice to have more info like a log in that particular case (and maybe other cases like empty body, not allowed query params or http headers).
> About the json validation, the json-validator module has another approach and allows to catch exception so we can decide what exception to log.
>  



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