From 80064d60b428224176e6103592d30952624a4c65 Mon Sep 17 00:00:00 2001 From: Eddy Efanga Date: Mon, 1 Jun 2026 22:37:52 +0100 Subject: [PATCH] feat: add JSON schema for template validation with required fields and properties --- templates/registry.schema.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/registry.schema.json diff --git a/templates/registry.schema.json b/templates/registry.schema.json new file mode 100644 index 00000000..48e34803 --- /dev/null +++ b/templates/registry.schema.json @@ -0,0 +1,34 @@ +{ + "type": "object", + "required": [ + "name", + "version", + "description", + "author", + "tags", + "source" + ], + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "description": { + "type": "string" + }, + "author": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object" + } + } +} \ No newline at end of file