gnodet-bot commented on code in PR #30856:
URL: https://github.com/apache/camel/pull/30856#discussion_r4706601143


##########
docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc:
##########
@@ -12285,3 +12285,8 @@ The Kamelet catalog 4.24 adds these Kamelets:
   untrusted input or AI agents. A vector (`knn`) search works too.
 * `pgp-encrypt-action` and `pgp-decrypt-action` (Preview) encrypt and sign a 
message body with OpenPGP, and decrypt it
   and check its signature, with key rings given as `file:`, `classpath:` or 
`base64:` resources.
+
+=== camel-openapi-validator
+
+* Upgraded Atlassian's request validator to `3.0.0`, changing the Maven 
artifact from `com.atlassian.oai:swagger-request-validator-core` to 
`com.atlassian.oai:openapi-request-validator-core`.
+* Validation error messages have changed format in `3.0.0` (for example, 
`Object has missing required properties (["photoUrls"])` is now `required 
property 'photoUrls' not found`).

Review Comment:
   ⚠️ The upgrade guide entry documents the artifact rename and error message 
changes but omits the most impactful user-facing issue: the 
`com.networknt:json-schema-validator` classpath conflict. Users combining 
`camel-openapi-validator` with `camel-json-validator`, `camel-openai`, or 
`camel-mcp-server` need a warning here — either about the incompatibility or 
about how to resolve it.



##########
components/camel-openapi-validator/pom.xml:
##########
@@ -49,8 +49,8 @@
 
         <dependency>
             <groupId>com.atlassian.oai</groupId>
-            <artifactId>swagger-request-validator-core</artifactId>
-            <version>${swagger-request-validator-version}</version>
+            <artifactId>openapi-request-validator-core</artifactId>
+            <version>${openapi-request-validator-version}</version>

Review Comment:
   ⚠️ `openapi-request-validator-core:3.0.0` pulls 
`com.networknt:json-schema-validator:2.0.1` (Jackson 2) as a transitive 
dependency. Camel's `parent/pom.xml` manages 
`com.networknt:json-schema-validator` at `3.0.9` (Jackson 3). Without an 
`<exclusion>` or dependency management override here, the BOM mediation 
behaviour is implementation-defined and the coexistence scenario 
(`camel-openapi-validator` + `camel-json-validator`) will cause 
`NoSuchMethodError` at runtime. This needs a resolution decision before merge.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to