diff --git a/db/json-schemas.data.js b/db/json-schemas.data.js new file mode 100644 index 0000000..7a4e303 --- /dev/null +++ b/db/json-schemas.data.js @@ -0,0 +1,10 @@ +import { getGoVersion } from "./client-libraries-versions" + +export default { + watch: ["ortfodb/meta.go"], + async load(watchedFiles) { + return { + version: await getGoVersion(watchedFiles[0]), + } + }, +} diff --git a/db/json-schemas.md b/db/json-schemas.md index 42b9f52..f207117 100644 --- a/db/json-schemas.md +++ b/db/json-schemas.md @@ -1,3 +1,13 @@ + + # JSON Schemas ortfo/db exports [JSON Schemas](https://json-schema.org/) for the different data files it uses. @@ -37,7 +47,7 @@ The schemas are all available on ortfo/db's repository in the `schemas/` directo Instead of getting the latest version, you can get a specific version by specifying it in the URL before the file name:
-https://ortfo.org/v1.2.0/resource name.schema.json +https://ortfo.org/{{ version }}/resource name.schema.json
## Using it in your editor