Goals:
- Allow local schemas to include other local schema files without hardcoding any absolute file paths
- Allow local schemas to include remote schemas, where the base URL of the remote schema can be configured (is not hard-coded)
- Serve schema libraries that can be used remotely over the http(s) protocol with consistent internal
$id
and$ref
fields where the base URL can be configured
We use a template variable called {base}
to insert the project's absolute file path without hard-coding it: