Support remote schema loading
OptimumCode opened this issue · comments
The main JSON schema might reference other schemas. The library should provide the ability to provide those schemas.
From my point of view, this should be done in the following way:
- The
json-schema-validator
project should have an interface (e.g.SchemaProvider
) that allows to resolve such schemas - The
json-schema-validator
project should have a simple implementation that:- Configured with pre-loaded schemas
- Provides those schemas by the URI
- Another project should be created (e.g.
json-schema-remote-provider
) and should contain an implementation that can load those schemas from the remote URI