Skip to content

CAMEL-23172: Upgrade dependency json-schema-validator to 3.x#23867

Draft
saravanakumar1987 wants to merge 6 commits into
apache:mainfrom
saravanakumar1987:main
Draft

CAMEL-23172: Upgrade dependency json-schema-validator to 3.x#23867
saravanakumar1987 wants to merge 6 commits into
apache:mainfrom
saravanakumar1987:main

Conversation

@saravanakumar1987

@saravanakumar1987 saravanakumar1987 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Description

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

"enabledDeserializationFeatures": { "index": 8, "kind": "parameter", "displayName": "Enabled Deserialization Features", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Comma-separated list of Jackson DeserializationFeature enum values which will be enabled for parsing exchange body" },
"errorHandler": { "index": 9, "kind": "parameter", "displayName": "Error Handler", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.jsonvalidator.JsonValidatorErrorHandler", "deprecated": false, "autowired": false, "secret": false, "description": "To use a custom ValidatorErrorHandler. The default error handler captures the errors and throws an exception." },
"objectMapper": { "index": 10, "kind": "parameter", "displayName": "Object Mapper", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "com.fasterxml.jackson.databind.ObjectMapper", "deprecated": false, "autowired": false, "secret": false, "description": "The used Jackson object mapper" },
"objectMapper": { "index": 10, "kind": "parameter", "displayName": "Object Mapper", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "tools.jackson.databind.ObjectMapper", "deprecated": false, "autowired": false, "secret": false, "description": "The used Jackson object mapper" },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thsi is a breaking change which must be documented in the upgrade guide

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no Jackson 3 support on Camel Quarkus yet.

@saravanakumar1987 saravanakumar1987 Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the upgrade guide and also added a new unit test for custom ObjectMapper with json validator.

@saravanakumar1987 saravanakumar1987 requested a review from apupier June 9, 2026 19:12

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgrade of json-schema-validator from 2.x to 3.x looks correct. The main changes are:

  1. The Jackson namespace migration from com.fasterxml.jackson to tools.jackson — this is expected for Jackson 3.x compatibility
  2. The dependency coordinates update to dev.harrel:json-schema (3.x artifact)
  3. Generated configurer files properly reflect the new tools.jackson.databind.ObjectMapper type

The migration appears well-contained within the camel-json-validator module.

Fully automatic review from Claude Code

@davsclaus davsclaus marked this pull request as draft June 10, 2026 06:01
@davsclaus

Copy link
Copy Markdown
Contributor

There's no Jackson 3 support on Camel Quarkus yet.

Yes this needs to wait for Quarkus 4 which we will target after next Camel LTS

@davsclaus

Copy link
Copy Markdown
Contributor

spring boot 4 can also use jackson 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants