From c61b1e899bfe85b1e843f4bd6be9266402feda04 Mon Sep 17 00:00:00 2001 From: psyirius Date: Wed, 7 Aug 2024 07:58:21 -0700 Subject: [PATCH] added json-schema for config/preset.json --- config/preset.json | 1 + schemas/config/preset.json | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 schemas/config/preset.json diff --git a/config/preset.json b/config/preset.json index 78083d15..a6a94989 100644 --- a/config/preset.json +++ b/config/preset.json @@ -1,4 +1,5 @@ { + "$schema": "../schemas/config/preset.json", "Standard": [ "WPFTweaksAH", "WPFTweaksConsumerFeatures", diff --git a/schemas/config/preset.json b/schemas/config/preset.json new file mode 100644 index 00000000..656dc7a3 --- /dev/null +++ b/schemas/config/preset.json @@ -0,0 +1,13 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "patternProperties": { + "^[a-zA-Z_][a-zA-Z0-9_]*$": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + \ No newline at end of file