I am trying to read a Schema file from a remote URL:
URI schema = URI.create("https://127.0.0.1:5500/schemas/card.json");
$RefParser parser = new $RefParser(schema).withOptions(new $RefParserOptions().withOnCircular(SKIP));
$Refs refs = parser.parse().dereference().getRefs();
When executing that code, the following error is thrown:
Exception in thread "main" java.lang.IllegalArgumentException: URI scheme is not "file"
at java.base/java.io.File.<init>(File.java:423)
at io.zenwave360.jsonrefparser.parser.Parser.parse(Parser.java:51)
at io.zenwave360.jsonrefparser.$RefParser.parse($RefParser.java:88)
at org.example.Main.main(Main.java:20)