From 294e606649078b7fd092ad7489a70a796694efa2 Mon Sep 17 00:00:00 2001 From: Nokome Bentley Date: Fri, 14 Jan 2022 11:50:14 +1300 Subject: [PATCH] fix(CodeExecutable): Remove `CodeExpression` variant from `codeDependencies` --- schema/CodeExecutable.schema.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schema/CodeExecutable.schema.yaml b/schema/CodeExecutable.schema.yaml index 108421c632..b3a6d2b353 100644 --- a/schema/CodeExecutable.schema.yaml +++ b/schema/CodeExecutable.schema.yaml @@ -16,8 +16,10 @@ properties: items: anyOf: - $ref: CodeChunk - - $ref: CodeExpression - $ref: Parameter + $comment: | + Note that this excludes `CodeExpression` nodes since they should not have side effects + (e.g. assigning variables) that would cause another node to be dependent upon them. codeDependents: '@id': stencila:codeDependents description: The downstream dependents of the code.