From 89603c82b6a2125ab4549efb4969fbea311c57fb Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Sun, 3 Nov 2024 22:08:57 -0500 Subject: [PATCH] fix: Allow module-stage-list to have top-level keys be optional --- src-tsp/main.tsp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src-tsp/main.tsp b/src-tsp/main.tsp index 01897cb..7d9b033 100644 --- a/src-tsp/main.tsp +++ b/src-tsp/main.tsp @@ -145,6 +145,16 @@ model ImportedModule { @jsonSchema("module-stage-list-v1.json") @extension("additionalProperties", false) model ModuleStageList { - ...ModuleList; - ...StageList; + /** + * A list of [modules](https://blue-build.org/reference/module/) that is executed in order. Multiple of the same module can be included. + * + * Each item in this list should have at least a `type:` or be specified to be included from an external file in the `recipes/` directory with `from-file:`. + */ + modules?: Array; + + /** + * A list of [stages](https://blue-build.org/reference/stages/) that are executed before the build of the final image. + * This is useful for compiling programs from source without polluting the final bootable image. + */ + stages?: Array; }