Skip to content

Commit afb2a46

Browse files
author
Alan Christie
committed
feat: Move variables to variable-mapping
1 parent 0f220c0 commit afb2a46

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

tests/workflow-definitions/duplicate-workflow-variable-names.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DataManagerWorkflow
33
kind-version: "2024.1"
44
name: duplicate-workflow-variable-names
55
description: A workflow with a duplicate variable name in the input and output
6-
variables:
6+
variable-mapping:
77
inputs:
88
- name: x
99
type: squonk/x-smiles

tests/workflow-definitions/simple-python-molprops-with-options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DataManagerWorkflow
33
kind-version: "2024.1"
44
name: python-workflow
55
description: A simple python experimental workflow
6-
variables:
6+
variable-mapping:
77
inputs:
88
- name: candidateMolecules
99
type: squonk/x-smiles

tests/workflow-definitions/simple-python-molprops.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DataManagerWorkflow
33
kind-version: "2024.1"
44
name: python-workflow
55
description: A simple python experimental workflow
6-
variables:
6+
variable-mapping:
77
inputs:
88
- name: candidateMolecules
99
type: squonk/x-smiles

tests/workflow-definitions/simple-python-parallel.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DataManagerWorkflow
33
kind-version: "2024.1"
44
name: python-workflow
55
description: A simple branching workflow
6-
variables:
6+
variable-mapping:
77
inputs:
88
- name: candidateMolecules
99
type: squonk/x-smiles

tests/workflow-definitions/workflow-options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: DataManagerWorkflow
33
kind-version: "2024.1"
44
name: workflow-options
55
description: Illustrate the use of workflow options
6-
variables:
6+
variable-mapping:
77
options:
88
- name: variableWithoutDefault
99
as:

workflow/workflow-schema.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ properties:
2828
items:
2929
$ref: "#/definitions/step"
3030
variables:
31+
# A Job-compliant set of variable declarations for the workflow.
32+
# This block structure is a reproduction of that used in Job definitions
33+
# and, like JObs, has no current schema.
34+
type: object
35+
additionalProperties: false
36+
variable-mapping:
37+
# Workflow-specific variable declarations,
38+
# used (at the moment) to map workflow variables to steps.
3139
type: object
3240
additionalProperties: false
3341
properties:

0 commit comments

Comments
 (0)