You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2024/07/17 09:25:00 UTC

[jira] [Updated] (CAMEL-20980) Allow to set custom Jackson object mapper on the JSON Schema Validator

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

Andrea Cosentino updated CAMEL-20980:
-------------------------------------
    Fix Version/s: 4.8.0

> Allow to set custom Jackson object mapper on the JSON Schema Validator
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-20980
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20980
>             Project: Camel
>          Issue Type: New Feature
>    Affects Versions: 4.7.0
>            Reporter: Alvin Kwekel
>            Priority: Major
>             Fix For: 4.8.0
>
>
> To be able to validate a very large (over 20.000.000 character) JSON string the Jackson object mapper needs to be configured with a custom `JsonFactory` with a `StreamReadConstraints` with a higher `maxStringLength`.
> The string length can't be configured via the Jackson deserialization features that are settable via the query parameters of the validator. There is a new ObjectMapper constructed in the doInit method of the `JsonValidatorEndpoint` so there is not way to override that.
> This feature is discussed in chat: 
> https://camel.zulipchat.com/#narrow/stream/257301-camel-spring-boot/topic/Custom.20Jackson.20object.20mapper.20on.20the.20JSON.20Schema.20Validator



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