Skip to content

CAMEL-22857: Move docling and vault examples to camel-jackson3-starter - #217

Open
Croway wants to merge 1 commit into
apache:mainfrom
Croway:CAMEL-22857-examples-jackson3
Open

Croway wants to merge 1 commit into
apache:mainfrom
Croway:CAMEL-22857-examples-jackson3

Conversation

@Croway

@Croway Croway commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Related: CAMEL-22857 (Add support for Jackson 3)

Summary

Spring Boot 4 uses Jackson 3 by default, and most JSON examples already use camel-jackson3-starter. docling and vault were the last two examples on the Jackson 2 data format (camel-jackson-starter). This PR moves them to camel-jackson3-starter. Their routes need no change, because both lines register the same jackson data format name.

The other examples were checked against the Jackson 2 → 3 migration rules (with dependency:tree on every module, plus a source search for Jackson imports, onException clauses, mapper beans and camel.dataformat.jackson.* / spring.jackson.* properties). Nothing else needs to change:

  • ai-agent gets camel-jackson through camel-jq-starter. It only uses jq expressions, which need Jackson 2, and no JSON data format.
  • twitter-salesforce only uses com.fasterxml.jackson.annotation, which is shared by both Jackson lines.

Verification

Each example was run per its README (Vault + Postgres, docling-serve in containers), first on Jackson 2 and then on Jackson 3:

Example Jackson 2 Jackson 3
vault [{"brand":"Ford","model":"Mustang","year":2024}] identical
docling (Markdown) output identical
docling (metadata JSON) {"schema_name":"DoclingDocument","version":…} Same content and size, properties in alphabetical order ({"body":…,"furniture":…}), the Jackson 3 default SORT_PROPERTIES_ALPHABETICALLY

./mvnw -pl vault,docling clean install passes. Neither example has tests.

Claude Code on behalf of Federico Mariani

Spring Boot 4 uses Jackson 3 by default, and the other JSON examples
already use camel-jackson3-starter. docling and vault were the last two
examples using the Jackson 2 data format (camel-jackson-starter).

Verified by running both examples per their README against containers,
on Jackson 2 first and then on Jackson 3:
- vault: GET /api/cars output is identical.
- docling: Markdown output is identical; the extracted metadata JSON is
  semantically equal, but properties are now in alphabetical order
  (Jackson 3 default SORT_PROPERTIES_ALPHABETICALLY).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant