Alvin Kwekel created CAMEL-20980:
------------------------------------

             Summary: 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


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)

Reply via email to