From 6c7922d90596eddcaeed19b5c432848b323c2b8b Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 26 Jun 2024 17:46:37 -0700 Subject: [PATCH] feat: provide a schema file for dartgun.toml --- dartgun.schema.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dartgun.schema.json diff --git a/dartgun.schema.json b/dartgun.schema.json new file mode 100644 index 0000000..e819d22 --- /dev/null +++ b/dartgun.schema.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "dots": { + "type": "array", + "items": { + "type": "object", + "properties": { + "location": { + "type": "string" + }, + "destination": { + "type": "string" + }, + "strategy": { + "type": "string", + "enum": ["symlink"] + }, + "identifiers": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["location", "destination", "identifiers"], + "additionalProperties": false + } + } + }, + "required": ["dots"], + "additionalProperties": false +}