From 0bcbcbd199b4a85bcae8236768f3686bfe4c6b61 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 17 Jan 2024 17:10:23 -0600 Subject: [PATCH] base/schema: Fix instructions schema Without the `...` prefix, CUE interprets a type enclosed in square brackets as a list of exactly one of that type. The ellipsis changes it to mean a list of any number of that type. --- base/schema/instructions/instructions.cue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/schema/instructions/instructions.cue b/base/schema/instructions/instructions.cue index 88613b5..fc5d4be 100644 --- a/base/schema/instructions/instructions.cue +++ b/base/schema/instructions/instructions.cue @@ -6,7 +6,7 @@ package instructions } #Hooks: { - changed?: [#Hook] + changed?: [...#Hook] } #RenderInstruction: { @@ -19,5 +19,5 @@ package instructions } #Instructions: { - render: [#RenderInstruction] + render: [...#RenderInstruction] }