aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/scripts/json-validation.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/scripts/json-validation.cjs')
-rw-r--r--frontend/scripts/json-validation.cjs28
1 files changed, 0 insertions, 28 deletions
diff --git a/frontend/scripts/json-validation.cjs b/frontend/scripts/json-validation.cjs
index 67ec3e375..a70413fd4 100644
--- a/frontend/scripts/json-validation.cjs
+++ b/frontend/scripts/json-validation.cjs
@@ -46,34 +46,6 @@ function validateOthers() {
return reject(new Error(fontsValidator.errors[0].message));
}
- //funbox
- const funboxData = JSON.parse(
- fs.readFileSync("./static/funbox/_list.json", {
- encoding: "utf8",
- flag: "r",
- })
- );
- const funboxSchema = {
- type: "array",
- items: {
- type: "object",
- properties: {
- name: { type: "string" },
- info: { type: "string" },
- canGetPb: { type: "boolean" },
- alias: { type: "string" },
- },
- required: ["name", "info", "canGetPb"],
- },
- };
- const funboxValidator = ajv.compile(funboxSchema);
- if (funboxValidator(funboxData)) {
- console.log("Funbox list JSON schema is \u001b[32mvalid\u001b[0m");
- } else {
- console.log("Funbox list JSON schema is \u001b[31minvalid\u001b[0m");
- return reject(new Error(funboxValidator.errors[0].message));
- }
-
//themes
const themesData = JSON.parse(
fs.readFileSync("./static/themes/_list.json", {