Closed crowdwave closed 5 months ago
file urls always contain absolute paths. even if the display string in error message is changed that does not solve the purpose; some one could load arbitrary file from your system by using $ref
as shown below
{
"$ref": "file:///path/to/secret/file"
}
so the correct solution is use custom loader with custom url scheme
say you have all schemas in some directory you can use custom url like schemas://path/to/schema.json
use Compliler.LoadURL
to load the schema from specific directory.
Hello
The error output seems to be revealing absolute file path information of the system that it is running on which is not ideal from a security perspective.
Is it possible to reveal only the relative file path?