Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20980

Allow to set custom Jackson object mapper on the JSON Schema Validator

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.8.0
    • None
    • None
    • Unknown

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            alvinkwekel@gmail.com Alvin Kwekel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: