Skip to content

Commit

Permalink
use existing RefUtils.mungedRef function
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jan 17, 2025
1 parent 980915e commit 74720bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public String processRefToExternalSchema(String $ref, RefFormat refFormat) {

RefFormat format = computeRefFormat($ref);
if (format.equals(RefFormat.RELATIVE)) {
String normalizedRef = "./" + Paths.get($ref).normalize().toString();
String normalizedRef = RefUtils.mungedRef(Paths.get($ref).normalize().toString());
if (!normalizedRef.equals($ref)) {
System.out.println("Normalized " + $ref + " to " + normalizedRef);
renamedRef = cache.getRenamedRef($ref);
Expand Down

0 comments on commit 74720bc

Please sign in to comment.