aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-12-04 14:49:59 +0100
committerMiodec <[email protected]>2024-12-04 14:50:07 +0100
commitb4065e21e774976677bf749ace480def07fc3680 (patch)
treed690ca0a37fe39c74e5ff8eb8b0ad98df2b19b2f
parent821ab57b4a2a81bc20c5b1f50f33c4529ebdeeb4 (diff)
downloadmonkeytype-shared-funbox.tar.gz
monkeytype-shared-funbox.zip
remove funbox json validationshared-funbox
-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", {