[ 
https://issues.apache.org/jira/browse/CAMEL-23599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151337#comment-18151337
 ] 

Sejal Gupta commented on CAMEL-23599:
-------------------------------------

PR submitted: https://github.com/apache/camel/pull/30856

Note on classpath conflict with {{com.networknt:json-schema-validator}}:
* {{com.atlassian.oai:openapi-request-validator-core:3.0.0}} brings in 
{{com.networknt:json-schema-validator:2.0.1}} (built on Jackson 2, 
{{com.fasterxml.jackson.databind.JsonNode}}).
* Camel aligns on {{com.networknt:json-schema-validator:3.0.9}} 
({{<networknt-json-schema-validator-version>}}, built on Jackson 3, 
{{tools.jackson.databind.JsonNode}}) used by {{camel-json-validator}}, 
{{camel-openai}}, and {{camel-mcp-server}}.
* Upstream {{atlassian/openapi-request-validator}} does not yet have a released 
version supporting {{networknt:json-schema-validator:3.x}} (see upstream issues 
#21, #37, and open PR #24).
* Having {{camel-openapi-validator}} alongside any of those components on the 
same classpath forces Maven to resolve a single version of 
{{com.networknt:json-schema-validator}}, causing a runtime 
{{NoSuchMethodError}} on {{Schema.validate(...)}} / 
{{SchemaRegistry.getSchema(...)}} under {{3.0.9}} (or breaking the other 
components under {{2.0.1}}).

Holding for maintainer decision on whether to wait for an upstream Atlassian 
release on {{networknt}} {{3.x}} or document the conflict in the 4.24 upgrade 
guide.

> [JDK 21] Upgrade com.atlassian.oai:swagger-request-validator-core from 2.x to 
> com.atlassian.oai:openapi-request-validator-core 3.x
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-23599
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23599
>             Project: Camel
>          Issue Type: Dependency upgrade
>          Components: camel-openapi-validator
>    Affects Versions: 4.20.0
>            Reporter: Aurélien Pupier
>            Priority: Major
>
> ir requires JDK 
> 21https://github.com/atlassian/openapi-request-validator/commit/bbeb88baf7d9641e856bc5e5523a83c6c14a5a30
> the artifact id has been renamed for 3.0.0 (even if it exists with there
> old one) from com.atlassian.oai:swagger-request-validator-core from to
> com.atlassian.oai:openapi-request-validator-core
> an error message has slightly changed.
> see for an upgrade proposal 
> https://github.com/apache/camel/pull/23397/changes/b1c9866207a33b8cad7a6520342fea916f287528
> PR to reopen when this issue is fixed 
> https://github.com/apache/camel/pull/23397 (so that Dependabot will pick it 
> up and be able to provide new PRs)



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to