From 124c5c51c24b0eacba891da9c6a2e4bc9eb1937a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 24 Nov 2025 00:57:12 +0000 Subject: reader: Resolve YAML inputs file type ambiguities. Resolve YAML inputs file type ambiguities by reading them along with the workflow file and using the workflow input types to guide their type coercion. --- test-data/inputs-with-type-ambiguities.yaml | 5 +++++ test-data/workflow-for-inputs-with-type-ambiguities.cwl | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test-data/inputs-with-type-ambiguities.yaml create mode 100644 test-data/workflow-for-inputs-with-type-ambiguities.cwl (limited to 'test-data') diff --git a/test-data/inputs-with-type-ambiguities.yaml b/test-data/inputs-with-type-ambiguities.yaml new file mode 100644 index 0000000..119b72f --- /dev/null +++ b/test-data/inputs-with-type-ambiguities.yaml @@ -0,0 +1,5 @@ +number: 13 +flag: true +reverseflag: false +foo: bar +arr: [1, 2, 3] diff --git a/test-data/workflow-for-inputs-with-type-ambiguities.cwl b/test-data/workflow-for-inputs-with-type-ambiguities.cwl new file mode 100644 index 0000000..4e33148 --- /dev/null +++ b/test-data/workflow-for-inputs-with-type-ambiguities.cwl @@ -0,0 +1,11 @@ +class: Workflow +inputs: + number: int + flag: boolean + reverseflag: boolean + foo: string + arr: + type: + type: array + items: int +outputs: [] -- cgit 1.4.1