From 371dfb52df45226188bf46bf3d852ac0a0dcb849 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Sat, 12 Oct 2024 10:48:33 -0400 Subject: [PATCH] chore: Add ModuleList, ModuleFull, StageList, and StageFull schemas --- src-tsp/main.tsp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src-tsp/main.tsp b/src-tsp/main.tsp index 261f5ec..a7a27e5 100644 --- a/src-tsp/main.tsp +++ b/src-tsp/main.tsp @@ -56,6 +56,16 @@ model Recipe { modules: Array; } +@jsonSchema("stage-list-v1.json") +model StageList { + stages: Array; +} + +@jsonSchema("stage-v1.json") +model StageFull { + ...Record; +} + alias Stage = StageDefault | FromFile; model StageDefault { @@ -77,6 +87,16 @@ model StageDefault { modules: Array; }; +@jsonSchema("module-list-v1.json") +model ModuleList { + modules: Array; +} + +@jsonSchema("module-v1.json") +model ModuleFull { + ...Record; +} + alias Module = RepoModule | CustomModule | FromFile; model FromFile {