davsclaus commented on code in PR #28670:
URL: https://github.com/apache/camel/pull/28670#discussion_r4413158457
##########
components/camel-openapi-java/src/main/java/org/apache/camel/openapi/OpenApiExternalReferences.java:
##########
@@ -485,9 +495,8 @@ private void inside(
}
String origin = where(ref, path, name);
lookups.add(new Lookup(uri, document, document != null ? document
: LOCAL_URI, origin));
- if (document != null) {
- targets.add(new Target(document, fragment, ref, origin, ids,
holder));
- }
+ // the parser takes only the part the reference selects, under the
$ids of the schemas enclosing the reference
Review Comment:
Done: the comment now says why the target is always added (an in-spec
reference used to be dropped by the old document != null guard).
_Claude Code on behalf of Claus Ibsen_
--
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]