Change JSON schemas to HTTPS URL

This commit is contained in:
Moritz Ruth 2022-08-18 15:16:12 +02:00
parent 6f3d5bf54c
commit ce7867ec60
2 changed files with 4 additions and 3 deletions

View file

@ -11,12 +11,14 @@ export const exportJsonSchemasCommand = new Command("export-json-schemas")
await fs.writeJson(path + "/manifest.schema.json", { await fs.writeJson(path + "/manifest.schema.json", {
title: "Horizr pack manifest", title: "Horizr pack manifest",
$id: "https://horizr.moritzruth.de/schemas/pack/manifest.schema.json", $id: "https://horizr.moritzruth.de/schemas/pack/manifest.schema.json",
...zodToJsonSchema(packManifestFileSchema) ...zodToJsonSchema(packManifestFileSchema),
$schema: "https://json-schema.org/draft-07/schema" // HTTPS
}, { spaces: 2 }) }, { spaces: 2 })
await fs.writeJson(path + "/meta-file.schema.json", { await fs.writeJson(path + "/meta-file.schema.json", {
title: "Horizr pack meta-file", title: "Horizr pack meta-file",
$id: "https://horizr.moritzruth.de/schemas/pack/meta-file.schema.json", $id: "https://horizr.moritzruth.de/schemas/pack/meta-file.schema.json",
...zodToJsonSchema(metaFileContentSchema) ...zodToJsonSchema(metaFileContentSchema),
$schema: "https://json-schema.org/draft-07/schema" // HTTPS
}, { spaces: 2 }) }, { spaces: 2 })
}) })

View file

@ -2,7 +2,6 @@
"formatVersion": 1, "formatVersion": 1,
"displayName": "Better Leaves", "displayName": "Better Leaves",
"enabled": true, "enabled": true,
"side": "client-server",
"version": { "version": {
"name": "7.0.0", "name": "7.0.0",
"fileName": "Better-Leaves.zip", "fileName": "Better-Leaves.zip",