CAMEL-23172: Upgrade dependency json-schema-validator to 3.x#23867
CAMEL-23172: Upgrade dependency json-schema-validator to 3.x#23867saravanakumar1987 wants to merge 6 commits into
Conversation
| "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" }, |
There was a problem hiding this comment.
thsi is a breaking change which must be documented in the upgrade guide
There was a problem hiding this comment.
There's no Jackson 3 support on Camel Quarkus yet.
There was a problem hiding this comment.
Updated the upgrade guide and also added a new unit test for custom ObjectMapper with json validator.
gnodet
left a comment
There was a problem hiding this comment.
The upgrade of json-schema-validator from 2.x to 3.x looks correct. The main changes are:
- The Jackson namespace migration from
com.fasterxml.jacksontotools.jackson— this is expected for Jackson 3.x compatibility - The dependency coordinates update to
dev.harrel:json-schema(3.x artifact) - Generated configurer files properly reflect the new
tools.jackson.databind.ObjectMappertype
The migration appears well-contained within the camel-json-validator module.
Fully automatic review from Claude Code
Yes this needs to wait for Quarkus 4 which we will target after next Camel LTS |
|
spring boot 4 can also use jackson 2 |
Description
Target
mainbranch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTestslocally from root folder and I have committed all auto-generated changes.