From f0851db54210e08bab9e2bdf2a0a2e34885d3f63 Mon Sep 17 00:00:00 2001 From: SKYJAMES777 <3886190@qq.com> Date: Tue, 23 Jun 2026 09:07:12 +0800 Subject: [PATCH] feat: add JSON Schema for project data structure --- project.schema.json | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 project.schema.json diff --git a/project.schema.json b/project.schema.json new file mode 100644 index 00000000..ce3baefb --- /dev/null +++ b/project.schema.json @@ -0,0 +1,63 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Tent of Trials Project Data", + "type": "object", + "required": [ + "project", + "version", + "modules" + ], + "properties": { + "project": { + "type": "string" + }, + "version": { + "type": "string" + }, + "modules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "backend", + "frontend", + "tool" + ] + }, + "language": { + "type": "string" + }, + "build_cmd": { + "type": "string" + }, + "artifacts": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "diagnostics": { + "type": "object", + "properties": { + "dir": { + "type": "string" + }, + "formats": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } +} \ No newline at end of file