You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started off simply trying to load a schema with references using JSchema.Load() and JSchema.Load() fails for every scenario with the error: "Unhandled exception. Newtonsoft.Json.Schema.JSchemaReaderException: Could not resolve schema reference './Common.schema.json#/definitions/Statement'."
I have tried the following three approaches without success.
a simple call to JSchema.Load() without a JsonSchemaSettings.BaseUri hoping that the library would look at the current working directory to find the files
providing a JSchemaReaderSettings to JSchema.Load() with a file scheme Uri to the path of my schema files (e.g. file://Users/.../testschema/ )
note: '...' is simply redacting a very long Uri
referenced file successfully loads in a browser using a full path file://Users/.../testschema/Common.schema.json
hosting my testschema folder with a simple static web server and using the baseUri http://localhost:8080/
I started off simply trying to load a schema with references using JSchema.Load() and JSchema.Load() fails for every scenario with the error: "Unhandled exception. Newtonsoft.Json.Schema.JSchemaReaderException: Could not resolve schema reference './Common.schema.json#/definitions/Statement'."
I have tried the following three approaches without success.
Test.schema.json
Common.schema.json
The text was updated successfully, but these errors were encountered: